BulkOperation Graphql API return url field with "null" sometimes

wasim-akhtar
New Member
5 0 0

@all

I've using bulk operation graphql API to download the data. I have tried to hit and it's worked fine and I got the URL in response as well. But after the completion of this operation, I hit the same bulk operation API and got the URL field null and there is no error present also in graphql response. Now, I tried again with some time intervals and it's working again after 1 or 1.5 hours for a single hit only. can anyone suggest to me why this happens?

or is there any time duration from one bulk operation to other bulk operations?

Note:- Using Shopify api gem to the rails project. 

I have just attached my bulk operation also with this message. 

Query Payload:

 
    mutation {
      bulkOperationRunQuery(
       query: """
        {
          products {
            edges {
              node {
                id
                title
              }
            }
          }
        }
        """
      ) {
        bulkOperation {
          id
          status
        }
        userErrors {
          field
          message
        }
      }
    }

Status API:

{ currentBulkOperation { id status url partialDataUrl errorCode} }
 
In response, once the operation is completed, the URL value is returned. but again I'll hit this after the first query completion, returned URL  "null"

 

0 Likes