graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

{"status":"INTERNAL_SERVER_ERROR","code":9432,"message":"Your session has expired. Please login.","statusCode":500};

Open vijayakumarit opened this issue 2 years ago • 3 comments

I am using custom variables like session-token, but while I am parsing through the Yaml file I am facing an error "session expired". But I am using the same token in my Postman collection as well and it's working perfectly. Maybe I missed any syntax errors (or) I missed any schema for this. Anyone please help?

Code :

sources:

  • name: ScoopsSearch handler: graphql: endpoint: https://vijay-staging.goom.com/profiles/graphql/scoopsSearch operationHeaders: Authorization: "bearer {env.x-zijwttoken}" user: "{env.user}" x-zisession: "{env.x-zisession}"

"x-zisession" => This field only getting Error.

vijayakumarit avatar May 23 '22 09:05 vijayakumarit

I am not sure, It's coming "x-zisession" or "Authorization: "bearer {env.x-zijwttoken}"".

vijayakumarit avatar May 23 '22 09:05 vijayakumarit

This looks like coming from your remote GraphQL endpoint. Are you sure correct header values are passed?

ardatan avatar May 23 '22 09:05 ardatan

Yes. I am sure same value what I passed in Postman Header. Same values also in Mesh... I spend last 4 Hours for this... Still I am not getting any idea... Why it's coming.. I followed the our code example

vijayakumarit avatar May 23 '22 09:05 vijayakumarit

Closing the issue due to the missing reproduction. Feel free to create a new issue with a clear reproduction. Thanks!

ardatan avatar Mar 31 '23 06:03 ardatan