图书搜索t.yush.im/v2/book/isbn返回Max retries exceeded with url

来源:3-7 从API获取数据

慕雪6811232

2019-04-11

老师,您好。跟您视频学习使用requests请求搜索接口报500

requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘t.yush.im’, port=80): Max retries exceeded with url: /v2/book/search?q=%0F)&count=15&start=0 (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x10572e0f0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known’,)) // Werkzeug Debugger

多个时间段分别尝试均返回500,另一个通过关键字搜索也是同样问题,请问是服务器出问题了吗?

写回答

2回答

7七月

2019-04-12

//img.mukewang.com/szimg/5cafebd00001e4f216941054.jpg你的url地址得正确呀。

0
1
慕雪6811232
晕,多谢老师。
2019-04-12
共1条回复

7七月

2019-04-11

这个是因为访问太频繁,被服务器拒绝了。https://stackoverflow.com/questions/23013220/max-retries-exceeded-with-url   参考下这个解决方案。

0
3
慕雪6811232
回复
7七月
没有循环,我就是用postman单次访问,但是一次也没有访问成功过。 刚刚我使用postman直接请求api,http://t.yush.im/v2/book/isbn/9787501524044,返回错误:Could not get any response There was an error connecting to http://t.yush.im/v2/book/isbn/9787501524044.Why this might have happened: The server couldn't send a response: Ensure that the backend is working properly Self-signed SSL certificates are being blocked: Fix this by turning off 'SSL certificate verification' in Settings > General Proxy configured incorrectly Ensure that proxy is configured correctly in Settings > Proxy Request timeout: Change request timeout in Settings > General
2019-04-11
共3条回复

Python Flask高级编程之从0到1开发《鱼书》精品项目

7月老师深入浅出剖析Flask核心机制,和你一起探讨Python高级编程

2735 学习 · 1267 问题

查看课程