Merge remote-tracking branch 'origin/main'

This commit is contained in:
TooY 2023-06-09 09:05:45 +08:00
commit 42ffdcdb0b
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ jobs:
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data '{"query":"query($locale: String){catalog(id: \"2Yp0TY3kBHgG6VDjsHZNpK\",locale:$locale) {linkedFrom(allowedLocales:[\"en-US\"]) {catalogCollection(limit:20) {items {key position title linkedFrom(allowedLocales:[\"en-US\"]) {catalogCollection(limit:20) {items {key title position}}}}}}}}","variables":{"locale":$LOCALE}}' \
--data-raw '{"query":"query($locale: String){catalog(id: "2Yp0TY3kBHgG6VDjsHZNpK",locale:$locale) {linkedFrom(allowedLocales:["en-US"]) {catalogCollection(limit:20) {items {key position title linkedFrom(allowedLocales:["en-US"]) {catalogCollection(limit:20) {items {key title position}}}}}}}}","variables":{"locale":$LOCALE}}' \
https://graphql.contentful.com/content/v1/spaces/ffrhttfighww > appmanage/static/json/catalog_$LOCALE.json
done

View file

@ -1 +1 @@
{"errors":[{"message":"Query execution error. Requested locale '$LOCALE' does not exist in the space","extensions":{"contentful":{"code":"UNKNOWN_LOCALE","documentationUrl":"https://ctfl.io/graphql-api-error-unknown-locale","requestId":"df27aeb8-8ca0-4080-b738-2b5d11ed6ad2","details":{"availableLocaleCodes":["en-US","zh-CN"]}}},"locations":[{"line":1,"column":24}],"path":["catalog"]}],"data":{"catalog":null}}
{"errors":[{"message":"Query cannot be executed. The request payload JSON format is broken.","extensions":{"contentful":{"code":"BROKEN_JSON","requestId":"6ec2e607-c26a-482a-8380-81c8c0df125a"}}}]}

View file

@ -1 +1 @@
{"errors":[{"message":"Query execution error. Requested locale '$LOCALE' does not exist in the space","extensions":{"contentful":{"code":"UNKNOWN_LOCALE","documentationUrl":"https://ctfl.io/graphql-api-error-unknown-locale","requestId":"df27aeb8-8ca0-4080-b738-2b5d11ed6ad2","details":{"availableLocaleCodes":["en-US","zh-CN"]}}},"locations":[{"line":1,"column":24}],"path":["catalog"]}],"data":{"catalog":null}}
{"errors":[{"message":"Query cannot be executed. The request payload JSON format is broken.","extensions":{"contentful":{"code":"BROKEN_JSON","requestId":"6ec2e607-c26a-482a-8380-81c8c0df125a"}}}]}