-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query > Asset's URL does not work #48
Comments
If all your asset is public, you should specific the If you want skygear generate a signed URL for per asset, set |
Confirmed that we had already set |
@cpryanpang I see the asset is uploaded to s3 correctly. Would you please help to check following so i get more hints on whats going wrong.
|
@rickmak Thanks your hint. We configured the s3 setting and we can access the image now. So this issue was not caused by skygear SDK. Thx a lot |
We upload an image file to server using JS SDK, to our own table
news_stress_image
, which has a columnphoto
referencing the table_asset
. Then we queried the tablenews_stress_image
and wanted to get the (publicly accessible) image url.The raw json result from the SDK's web service is captured:
The returned url at
record.photo.url
-- https://s3-ap-northeast-1.amazonaws.com/cloudpillar-sky-test/180180b3-eb17-4a0c-8309-97da9444e677-news-stress-image -- does not works. An error xml string stating "Access Denied" is returned.From docs https://docs.skygear.io/js/guide/asset, we saw in the comment:
Then logging into Skygear Developer Portal and we saw that the environment variable
ASSET_STORE_URL_PREFIX
is having valuehttps://skygearprototype.staging.skygeario.com/files
. Thus the url https://skygearprototype.staging.skygeario.com/files/180180b3-eb17-4a0c-8309-97da9444e677-news-stress-image works actually but wasn't returned from SDK.Would please advise whether there are some mistakes in our environment variables?
The text was updated successfully, but these errors were encountered: