The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

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