🎅 HOHOHO! 85%OFF Flatlogic Generator! 🎄Build your custom CRM, ERP, or SaaS app with full code ownership this Christmas 🎁

I can't call post api in postman.

User profile image

I can call in swagger but can't call in postman or in my code. Do you have any restrict to use this platform?

User profile image

Hi Toni, Thank you for reaching out. There shouldn’t be any restrictions that prevent you from using other platforms like Postman or your own code.

To help resolve this issue, could you please provide: - The specific error messages you are encountering in Postman and your code. - Any authentication tokens or headers you are using. - The exact API endpoint you are trying to call.

With this information, we can investigate further and assist you in resolving the issue. Thank you for your patience and understanding. We look forward to your response.

User profile image

sorry to reply late. - The error said Invalid URL with status code 500 - My Header {'accept': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiMTkzYmY0YjUtOWYwNy00YmQ1LTlhNDMtZTdlNDFmM2U5NmFmIiwiZW1haWwiOiJrb25nX2tfbEBob3RtYWlsLmNvbSJ9LCJleHAiOjE3MjM4Mzk3MDF9.esGXLxn8JVW3K6kKv1qxmCA7Ht8-fJx9FNBlZ655o', 'Content-Type': 'application/json'} - my endpoint https://news-25313-lnm5nd2pia-uc.a.run.app/api/news

https://app.blaze.cx/link?li=66bf50a538570de78098257d&c=6fe08e&sk=5762b14713 I also add image link for get and post. Thank you.

User profile image

Hello Toni Lieo,

We checked everything on our side, and everything is working correctly.

We then decided to check the project you assembled. It appeared that there were no users in the database, so we restored them.

Please try again now. Everything should be okay.

Looking forward to your update.

User profile image

Hello Erik, It still doesn't work. You can look at my upload VDO. https://app.blaze.cx/link?li=66c3f9ba0b9a147e4d506220&c=319399&sk=4768dd7485

Thank you.

User profile image

It seems the problem is that postman is not sending the referer header when making a POST request. You can add the following data to the header: referer: https://news-25313-lnm5nd2pia-uc.a.run.app and everything should work. On our side, we will add a fix to the backend to account for this nuance.

Solved
User profile image

it works now. Thank you.