When laravel is used to develop the WeChat service platform, the problem of service failure occurs.

Source: Internet
Author: User
Recently, I was looking at things on the public platform and tried to use php for development. After laravel passes token verification and sends a message to the subscription number, it will prompt an error message indicating that the service cannot be provided. Then I use a single PHP file for testing, at the beginning, my server address is filled with xxx.com and the results still show the same... recently, I was looking at things on the public platform and tried to use php for development.

After laravel passes token verification and sends a message to the subscription number, an error message indicating that the service cannot be provided is displayed.

Then I tested with a single PHP file and started to fill in the http://xxx.com/results for my server address or the same problem

The code didn't change. I changed the server address to the http://xxx.com/index.php and it turned out to work. So I would like to ask my friends who have worked on development. What is the situation? It has something to do with url?

Reply content:

Recently, I was looking at things on the public platform and tried to use php for development.

After laravel passes token verification and sends a message to the subscription number, an error message indicating that the service cannot be provided is displayed.

Then I tested with a single PHP file and started to fill in the http://xxx.com/results for my server address or the same problem

The code didn't change. I changed the server address to the http://xxx.com/index.php and it turned out to work. So I would like to ask my friends who have worked on development. What is the situation? It has something to do with url?

It has nothing to do with the URL. I have used Laravel to develop complex systems (including messages, events, webapps, Ajax interfaces, and payments) and communicate with the server through a Laravel route configuration.

I guess the solution to your problem should be here: About the public platform "your service failed to correctly respond to Token Verification" error Solution

Generally, it is displayed that the service is unavailable because your application did not return the corresponding data when requesting your laravel application. Therefore, it is displayed that the service is unavailable. Use the log to debug it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.