mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
42ffdcdb0b
2
.github/workflows/getDatafromContentful.yml
vendored
2
.github/workflows/getDatafromContentful.yml
vendored
@ -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
|
||||
|
||||
|
@ -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"}}}]}
|
@ -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"}}}]}
|
Loading…
Reference in New Issue
Block a user