Skip to content

Instantly share code, notes, and snippets.

@rafaellucio
Created September 27, 2020 01:17
Show Gist options
  • Save rafaellucio/1c8b0c328abd68a8eed5f9d50d0f13ce to your computer and use it in GitHub Desktop.
Save rafaellucio/1c8b0c328abd68a8eed5f9d50d0f13ce to your computer and use it in GitHub Desktop.
Hi everyone,
I can't have access an my Decathlon account, when the website try load my profile, it returns a error
Here is an erro in GraphQL request
Request:
curl 'https://decathlonmyaccount--decathlonstore.myvtex.com/_v/graphql/private/v1' \
-H 'authority: decathlonmyaccount--decathlonstore.myvtex.com' \
-H 'accept: */*' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36' \
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'origin: https://www.decathlon.com.br' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://www.decathlon.com.br/_secure/minha-conta' \
-H 'accept-language: en-US,en;q=0.9' \
--data-raw '{"query":"query {\n userDecathlon(email: \"[email protected]\") {\n contact {\n email\n email_valid\n mobile\n mobile_valid\n mobile_country_code\n landline\n landline_country_code\n }\n\n identity_individual {\n name\n surname\n national_id\n country_code\n langue\n sexe\n name2\n birthdate\n national_id_type\n member_type\n }\n\n shipping_address {\n id_address\n street_name\n line2\n street_number\n district\n postal_code\n city\n province\n additionnal_data\n country_code\n address_type\n title\n name\n surname\n is_prefered\n }\n\n sports {\n do_not_practiced_sports\n list_sports {\n id_sport\n supprime\n }\n }\n\n stores {\n num_third_usual\n }\n\n optin {\n id\n type\n value\n }\n\n completion {\n percent\n }\n }\n }"}' \
--compressed
Response Headers:
Request URL: https://decathlonmyaccount--decathlonstore.myvtex.com/_v/graphql/private/v1
Request Method: POST
Status Code: 200
Response Payload:
{"data":{"userDecathlon":null},"errors":[{"message":"Cannot read property 'data' of undefined","locations":[{"line":2,"column":3}],"path":["decathlonstore_decathlononeid_0_9_50_userDecathlon"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{}},"positions":[32],"name":"GraphQLError","source":{"body":"query ($_v0_email: String!) {\n decathlonstore_decathlononeid_0_9_50_userDecathlon: userDecathlon(email: $_v0_email) {\n contact: contact {\n email: email\n email_valid: email_valid\n mobile: mobile\n mobile_valid: mobile_valid\n mobile_country_code: mobile_country_code\n landline: landline\n landline_country_code: landline_country_code\n }\n identity_individual: identity_individual {\n name: name\n surname: surname\n national_id: national_id\n country_code: country_code\n langue: langue\n sexe: sexe\n name2: name2\n birthdate: birthdate\n national_id_type: national_id_type\n member_type: member_type\n }\n shipping_address: shipping_address {\n id_address: id_address\n street_name: street_name\n line2: line2\n street_number: street_number\n district: district\n postal_code: postal_code\n city: city\n province: province\n additionnal_data: additionnal_data\n country_code: country_code\n address_type: address_type\n title: title\n name: name\n surname: surname\n is_prefered: is_prefered\n }\n sports: sports {\n do_not_practiced_sports: do_not_practiced_sports\n list_sports: list_sports {\n id_sport: id_sport\n supprime: supprime\n }\n }\n stores: stores {\n num_third_usual: num_third_usual\n }\n optin: optin {\n id: id\n type: type\n value: value\n }\n completion: completion {\n percent: percent\n }\n }\n}\n","name":"GraphQL request","locationOffset":{"line":1,"column":1}}}]}
Mac OS Catalina version 10.15.6 (19G2021)
<meta name="vtex-version" content="1.4.1637.2278" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment