Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

incorrect error message when asset gear is misconfigured #1213

Open
hidden-dimensions opened this issue Feb 17, 2020 · 0 comments
Open

incorrect error message when asset gear is misconfigured #1213

hidden-dimensions opened this issue Feb 17, 2020 · 0 comments

Comments

@hidden-dimensions
Copy link
Contributor

hidden-dimensions commented Feb 17, 2020

(Describe the issue here)

  • Skygear Server Date/Version: 0135aa2

When configured S3 with incorrect region and attempt to upload, the error message is misleading.

Expected Results

Should display a meaning error message.

Actual Results

{"error":{"name":"AlreadyExists","reason":"DuplicateAsset","message":"duplicate asset","code":409}}

Steps to reproduce

  1. config asset gear with incorrect S3 region (probably other settings as well)
curl -X POST -d '{
  "access": "private",
  "headers": {
     "content-type": "image/jpeg",
     "content-length": "10"
  }
}' http://localhost:3000/_asset/presign_upload \
  -H "x-skygear-api-key: *** \
  -H "content-type: application/json"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant