Api connector issue - works with postman - need help

im trying to solve a problem last days but i can’t seem to fix it.

i want to do a post to odoo and this works fine in postman but when i do the same thing in the api connector it gives an error:

Raw response for the API 
Status code 400
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>Session expired (invalid CSRF token)</p>

its weird because when /jsonrpc ignores the csrf, so it is strange that you receive that error.



Check your headers. You must have missed something.

Ankur@ Nocodetalks
Looking for a Bubble Coach? Check out here

this is what is used in postman, but do i need to add these in bubble? and is it then the header or a shared header?

Sometime you need to add the “Content-type” and “Accept-encoding” headers tag.

1 Like

thank you you made my day

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.