Error when updating a product, works with X-Shopify-Access-Token but not with private app(api key).

IntegrationUser
New Member
6 0 0

Hey Everyone, 


I am getting this error below when I am trying to update a product using /admin/api/2020-04/products/5438842732xxxx.json.

This works when I am trying it with X-Shopify-Access-Token.

However, when I am using a private app and use the api key and password, it doesn't work. (for example: https://apikey:password@demo.myshopify.com/admin/api/2020-04/products/543884273xxxx.json). 

{"type":"http.ClientResponse","code":400,"headers":{"Transfer-Encoding":"chunked","X-Sorting-Hat-ShopId":"42004709533","Server":"cloudflare","CF-RAY":"5c0b238c68356c5c-SJC","X-Shopify-Stage":"production","X-Request-ID":"73e660af-c170-4e31-a263-941ead7f572f","X-Content-Type-Options":"nosniff","X-Download-Options":"noopen","X-Permitted-Cross-Domain-Policies":"none","Date":"Mon, 10 Aug 2020 16:36:59 GMT","Via":"1.1 mono003","CF-Cache-Status":"DYNAMIC","X-Sorting-Hat-PodId":"156","Set-Cookie":"__cfduid=dc8e39e4397d605f5fd8f0a3ea000e5e01597077418; expires=Wed, 09-Sep-20 16:36:58 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax","X-XSS-Protection":"1; mode=block","X-Dc":"gcp-us-central1,gcp-us-east1,gcp-us-east1","alt-svc":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400","Content-Type":"application/xml","cf-request-id":"047ad48bbe00006c5c268fb200000001","Expect-CT":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},"body":"

\n1:1: FATAL: Start tag expected, '<' not found\n"}


Do you know why I am getting the above error when I am using private app (api key and password) instead of public app (x-shopify-access-token)?

0 Likes
IntegrationUser
New Member
6 0 0

This is the response I am getting:     1:1: FATAL: Start tag expected, '<' not found

0 Likes