"deploy" command fails with unexpected error

Topic summary

Users encountered a deployment failure when running the deploy command for Shopify apps. The error manifested as:

Error Details:

  • Partners GraphQL API returned HTTP 200 with “Unexpected system error” (code 500)
  • Stack trace pointed to graphql-request library issues

Environment:

  • Shopify CLI version 3.39.0
  • Node.js versions tested: v18 and v20.1.0
  • npm v9, Ruby v3.1

Resolution:
The issue resolved itself without user intervention, indicating it was a temporary problem on Shopify’s API side rather than a configuration or code issue. No specific fix or workaround was required.

Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

The Partners GraphQL API responded unsuccessfully with the HTTP status 200 and errors:

[ 
      {                                    
        "message": "Unexpected system error", 
        "extensions": {                                           
           "code": "500"                                           
         }                                                         
      }                                                            
    ]

Stack trace

at (graphql-request/src/index.ts:410)         
       throw new ClientError(                                    
     at step (graphql-request/dist/index.js:63)                  
       op = body.call(thisArg, _);                               
     at next (graphql-request/dist/index.js:44)                  
       function verb(n) { return function (v) { return step([n,  
        v]); }; }                                                
     at fulfilled (graphql-request/dist/index.js:35)             
       function fulfilled(value) { try {                         
       step(generator.next(value)); } catch (e) { reject(e); }   
       }                                                         
     at processTicksAndRejections                                
     (node:internal/process/task_queues:95)

Shopify CLI version
3.39.0

Node version
18.10.0

We have the same problem (nodejs v 18, ruby v3.1, npm v9, Shopify CLI 3.39.0). How can we fix that?

Everything worked itself out. API problem on shopify side.