Join the Webstudio community

Updated 2 months ago

Image not showing in Webstudio

At a glance
I have an image that has a dynamic source. The source is correct, but the image is not showing in Webstudio.
Did I set up something incorrectly is this an actual bug?
c
A
23 comments
Do you want me to share my project?
have you tried refreshing your api request
Yes, couple of times
I mean, the source is correct. I can copy/paste it in the browser
maybe check console. i tried going to the image and i get permission issues . do you have a token set up for permissions on the api request
Are you sure you went to the correct image?
When you click on the link you get this?
the site you are getting it from needs sign in from the looks of it
Attachment
image.png
Yeah, it´s my db
ah do you have a token set up for the request
ah you will prob need a bearer token to access this data
I´m using graphql
yeah graphql can sometimes need a token too if the data is protected
for instance this is what my graphql one looks like using flotiq graphql request
Attachment
image.png
i removed the token though
Ok, I found the solution. Really specific directus issue apparently.
I had to allow access to files for API and also query for the specific id of the image.
But thanks for giving me a little push in the right direction!
Add a reply
Sign up and join the conversation on Discord