Question

Laravel deployed on the App Plattform and POST requests are not working

Posted October 13, 2021 88 views
LaravelDigitalOcean App Platform

I deployed a micro service written in Laravel to the App Plattform and now every POST request returns a 302 error.

Everything works fine locally and on the staging server (not on the App Plattform).

What’s wrong?

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

302 is not found.

You’re likely pointing to the wrong URL on the DO App Platform.

Change to point to the URL given you on DO or double check the URL is correct

  • Thank you for reply.

    I don’t think so. All the GET requests works fine, and I double checked the settings and it looks correct. The browser part of the micro service works fine as well.

    • Hey @Iglebekk

      It appears to be an HTTP route issue. Did you configure the routing in the app code and app settings? If yes then this might be the issue. If you are handling the routing in the app code then avoid configuring the routes in the app settings via cloud panel. Please correct the routing and check the POST request.

      If the issue persists then I would recommend you create the support ticket so that we can review the routes ourselves and help you in resolving this issue.

      Cheers,
      Dikshith