Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{"code":401,"data":"Json parse failed."} #152

Open
Linaom1214 opened this issue Sep 13, 2024 · 2 comments
Open

{"code":401,"data":"Json parse failed."} #152

Linaom1214 opened this issue Sep 13, 2024 · 2 comments

Comments

@Linaom1214
Copy link

如题,导致该错误的可能原因有哪些?

@Gavin1937
Copy link
Contributor

Gavin1937 commented Sep 13, 2024

这种情况一般是PaddleOCR-json所接收到的JSON数据不完整/为空而引发的JSON解析错误。

可以在客户端/API端检查发送给引擎的数据。倘若引擎是以管道模式启动的话就检查客户端写入stdout给引擎的数据。若引擎是以套接字模式启动的话就在发送套接字数据包前检查输入数据。

@Linaom1214
Copy link
Author

这种情况一般是PaddleOCR-json所接收到的JSON数据不完整/为空而引发的JSON解析错误。

可以在客户端/API端检查发送给引擎的数据。倘若引擎是以管道模式启动的话就检查客户端写入stdout给引擎的数据。若引擎是以套接字模式启动的话就在发送套接字数据包前检查输入数据。

好的,已经解决,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants