DELETE method I am receiving 405 #709
Replies: 3 comments 5 replies
-
Ok so I tested hard coding the "id" on the delete call and it works. Now I see whats going on. Is there a way to use a response data in the request URL? |
Beta Was this translation helpful? Give feedback.
-
Ok so under notifications there is an example of using responses.data in the url. I have tried this and it seems to be literally sending {{ response.[1].data.id }} Also I see differences in examples in the documentation of using "responses" vs "response" I have tried both and neither seem to be working on the url in the probe. |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman I finally got this working! The issue was response vs responses - Notice above what I was using. This is the call that now works |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting a 405 when trying to issue a DELETE from Monika and I'm not sure why. I can run the exact same curl command from terminal or from postman without any issues.
INFO: 2022-06-16T15:53:50.091Z - Connected to STUN Server. Monika is running from: xx.xx.xx.xx
INFO: 2022-06-16T15:54:01.973Z 1 id:monitor_auth 200 POST https://website.com/v1.0/endpoint/default/token 474ms
INFO: 2022-06-16T15:54:02.776Z 1 id:monitor_auth 201 POST https://website.com/v2.0/Users 794ms
INFO: 2022-06-16T15:54:03.005Z 1 id:monitor_auth 200 GET https://website.com/v2.0/Users?filter=userName+eq+%22{{ response.[1].data.userName}}%22 224ms
WARN: 2022-06-16T15:54:03.493Z 1 id:monitor_auth 405 DELETE https://website.com/v2.0/Users/{{ response.[1].data.id}} 483ms, ALERT: response.status != 200
This is the method under the probe
method: DELETE
timeout: 7000
url: https://website.com/v2.0/Users/{{ response.[1].data.id}}
headers:
Authorization: Bearer {{ responses.[0].data.access_token }}
body: {}
alerts:
- query: response.time > 2800
message: Login API Response time is {{ response.time }} ms, expecting less than 2000>
- query: response.status != 200
message: Login API Status code is not 200. Please check the service status!
--header 'Authorization: Bearer xxxxxxxxx'
Returns a response of 204
I dont have access to the logs to see what the DELETE request actually looks like. Is there a way to print out the full request to see what Monika is sending?
Beta Was this translation helpful? Give feedback.
All reactions