Postman "error": "mime: expected token after slash", when calling {{URL_ENDPOINT}}/action/insertOne

Hi all

I am new to MongoDB and Postman and wanted to test out some stuff.

Followed the following instructions to setup Postman:

but I do receive alwayse a 400 bad request with following error:
“error”: “mime: expected token after slash”,

does someone have any clue what the issue is?

Thank you very much for support!

try going to environments within Postman and re-save the variables. This worked for me.

Make sure that the environment you use when testing the API is “Data API”

or manually enter the values in the headers section of the test

did work for me! thank you very much Luke!

I too am seeing similar on {{URL_ENDPOINT}}/action/aggregate … vars all look good and environment is Data API

Hi,

You need to specify all the Environement Variables including these in the Header section for Data API. Usualy when you are missing API_KEY or CONTEN_TYPE gives that error.
API_KEY, CONTEN_TYPE, COLLECTON, DABASE, DATSOURCE vs.

1 Like

it works form me, initially I thought it was something wrong with token, but not, I didn’t fill content type “json”