Burp Suite User Forum

Create new post

Received Query must not be null error message for create schedule item graphql query but it is working fine in postman

Sundararaman | Last updated: Apr 11, 2023 06:41PM UTC

body = """ { I have tested below mutation query using postman and got the successful response. However when I tried to use the same code in python, I am always getting below error message. response status code: 200 response : b'{"errors":[{"message":"query must not be null","extensions":{"code":3}}]}' body = """ { mutation CreateScheduleItem { create_schedule_item(input: {site_id: "2"}) { schedule_item { id schedule { rrule initial_run_time } scheduled_run_time } } } } """ response = requests.post(url=url, headers=Headers, json={"mutation": body}) Kindly let me know the reason getting this error message for the same query that works fine in postman.

James, PortSwigger Agent | Last updated: Apr 12, 2023 09:46AM UTC

Hi Sundar,

Thanks for your message.

I have responded to the email you also send over.

Please reply to the email thread if we can help with anything else.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.