Report this

What is the reason for this report?

API Request don't work from the gateway api

Posted on March 29, 2021

I have two api’s in production. Api(1) is the gateway and api(2) is a products api. When I make a request straight to the products api (api2), it works fine. But when I make a post request from the gateway (api1) to the products api (api 2), the data is not inserted into the database. Both api’s are laravel. I am also using DO mysql managed database. My first time on DO though. Please any help?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I could suggest the starting following things:

  • Start by checking your Laravel logs to make sure that there are no errors there
  • Check your server and PHP error logs too
  • Try enabling debug mode and PHP errors to actually see any errors

Feel free to share the logs here after removing any sensitive information. Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.