Question

API Request don't work from the gateway api

Posted March 29, 2021 203 views
MySQLPHPAPIPHP FrameworksDatabasesBuilding on DigitalOcean

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?

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.

×
Submit an Answer
1 answer

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