Hongmu Notes
Home Summary of pitfalls When docking Baidu api, an error was reported, with error code: redirect_uri_mismatch error message: Invalid redirect uri.
Summary of pitfalls

When docking Baidu api, an error was reported, with error code: redirect_uri_mismatch error message: Invalid redirect uri.

When docking Baidu api, an error was reported, with error code: redirect_uri_mismatch error message: Invalid redirect uri.

This error usually occurs when the authorized redirect URI used with the Baidu API does not match the redirect URI you have configured in your app management settings.

Please check the following aspects for any discrepancies:

  1. Verify whether the callback URL configured in App Management matches the callback URL used in your code.
  2. Verify that your callback URL is correct. The callback URL must be a valid domain name or IP address for your application.
  3. Check whether your callback URL contains the http:// or https:// prefix; if it does, ensure that it matches the callback URL you have configured in the Application Management section.
  4. If your application is running in a local development environment, you need to configure a local callback URL in Application Management and use this local callback URL in your code.

If you are still unable to resolve this issue, please check whether your authorization process is correctly implemented in accordance with the Baidu API requirements, or contact Baidu API technical support for further assistance.

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Browser caching increases the speed of secondary visits to your website

Browser caching increases the speed of secondary visits to your website Summary of pitfalls

Use browser caching of official words: If users will visit your website multiple times, browser caching of static resources can save users time. Cache headers should be applied to all cacheable static resources, not just to a small subset of static resources (for example, images). Cacheable resources include JS and CSS files, image files, and other binary object files (media files, PDF files, etc.). Normally, HTML doesn’t…
👁 202

Recommended reading

What should I do if the Redis Object Cache plug-in cannot be linked after wordpress redis changes the password?

What should I do if the Redis Object Cache plug-in cannot be linked after wordpress redis changes the password? Program Notes wordpress

Problem description: My wordpress site server uses pagoda panel, installed php8.0, and installed redis on the extension panel, and installed Redis Object Cache plug-in in wordpress. In fact, in general, you don't need to do anything, just start it directly. However, it is unsafe for radis not to set a password, which is a risky loophole, so I still think it is better to set a password, …
👁 256
(Adaptive mobile version) PBootCMS template for battery-powered energy-related websites; Download source code for energy technology product websites – 0575

(Adaptive mobile version) PBootCMS template for battery-powered energy-related websites; Download source code for energy technology product websites – 0575 Practical Collection pbootcms Template

A battery and energy technology product – PbootCMS website template, compatible with both PC and WAP devices. The modern, industrial design is ideal for showcasing batteries, energy storage products, and energy solutions. It enables new energy enterprises to present their products online and attract customers from the power and telecommunications industries. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.c...
👁 34
Responsive Mobile Accessories Design Website Template 0201

Responsive Mobile Accessories Design Website Template 0201 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the mobile phone accessories industry, featuring a modern and tech-driven design style perfect for showcasing mobile phone accessories products, design concepts, brand identity, and new product launches. It helps mobile phone accessory brands attract younger consumers online. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (E...
👁 50
Responsive mobile accessory design website template (1024x1024)

Responsive mobile accessory design website template (1024x1024) Practical Collection Yiyou template

An EyouCMS responsive website template tailored for the mobile phone accessory industry. Its modern, tech-driven design style is ideal for showcasing mobile phone accessories products, design trends, brand identity, and new product launches – helping mobile accessory brands attract younger consumers online. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 60
(PC+WAP) Embroidery Website – PBootCMS Template; Download Source Code for Traditional Handicrafts Websites – 0576

(PC+WAP) Embroidery Website – PBootCMS Template; Download Source Code for Traditional Handicrafts Websites – 0576 Practical Collection pbootcms Template

A PbootCMS website template designed for the embroidery, needlework, and traditional handicraft industries, supporting access via both PC and WAP devices. Its classical and elegant design effectively showcases the aesthetic beauty and cultural heritage of embroidery craftsmanship. This template helps traditional handicraft businesses showcase their products online, preserve their craft traditions, and expand their market reach. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin
👁 44