Hello, so I have an issue with Directus Flow. Can anyone help? I’m trying to send an API request to tMDB via the webhook/request node but it’s giving me a 403 error because I am sending a null body. So is there a way to remove the body entirely?
Hello, so I have an issue with Directus Flow. Can anyone help? I’m trying to send an API request to tMDB via the webhook/request node but it’s giving me a 403 error because I am sending a null body. So is there a way to remove the body entirely?
Which API are you trying to call on tMDB? Can you share an example of the request or a link to the specific docs? You may have the request method set to POST when It should be a GET request.
– alexv-directusI'm trying to call the movie/show details API (https://api.themoviedb.org/3/movie/:id), I did set the request type to GET and also kept the body empty. Here's a sample API request:
– readywolfone{ "method": "GET", "url": "https://api.themoviedb.org/3/movie/11", "headers": [ { "header": "Authorization", "value": "Bearer KEY_HERE" } ], "body": null }I also tried "", "" with zero-width character (U+200B) and '' as the body but all of them return 403 errors. I also asked this question on the tmdb forum and they said the request should go through as long as the body is either not in the request or it's an empty string. The issue with the value I passed is that the inverted commas get escaped and then the body isn't an empty string anymore.
– readywolfone