You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a worker with a GET method is added, jobs fail with this error message: request with GET/HEAD/OPTIONS method cannot have body
After checking the file worker-http-controller.ts i can see body is always set, no matter which endpoint method is used: body: JSON.stringify({ job: job.toJSON(), token }),
Maybe body shouldn't be set if GET method is used?
The text was updated successfully, but these errors were encountered:
Although the HTTP specification does not prohibit sending a body in a GET call, it may be wise to not allow the GET verb when registering worker endpoints as in your case, for example, your server does not support it. I Will mark this issue as an enhancement.
manast
changed the title
Error with GET method endpoints
Should only support POST and PUT verbs for worker endpoints
Aug 10, 2024
manast
changed the title
Should only support POST and PUT verbs for worker endpoints
Should only support POST, PUT and PATCH verbs for worker endpoints
Aug 10, 2024
When a worker with a GET method is added, jobs fail with this error message:
request with GET/HEAD/OPTIONS method cannot have body
After checking the file
worker-http-controller.ts
i can see body is always set, no matter which endpoint method is used:body: JSON.stringify({ job: job.toJSON(), token }),
Maybe body shouldn't be set if GET method is used?
The text was updated successfully, but these errors were encountered: