(426):newsapi.org的需要升级错误 [英] (426): Upgrade Required error for newsapi.org

查看:66
本文介绍了(426):newsapi.org的需要升级错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是数据分析的新手,我正在使用PowerBi Desktop2019.我正尝试通过newsapi.org的API调用获取数据

I'm a noob at data analytics, I am using PowerBi Desktop 2019. I am trying to get data via API call from newsapi.org

我已经研究了HTTP错误(426),但是我不知道这是什么意思或如何解决该错误:

I have researched the HTTP error (426) but I don't know what it means or what to do to fix it:

服务器拒绝使用当前协议执行请求但在客户端升级到其他客户端后可能会愿意这样做协议.

"The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.

服务器必须在426响应中发送Upgrade标头字段,以指出所需的协议"

The server MUST send an Upgrade header field in a 426 response to indicate the required protocol(s)"

这是我进行API调用时在PowerBi中遇到的错误(我在下面的示例中加扰了我的API密钥)

Here is the error I get in PowerBi when I make the API call (I scrambled my API key in the example below)

详细信息:Web.Contents无法从中获取内容'

Details: Web.Contents failed to get contents from 'https://newsapi.org/v2/everything?q=poppins&from=2019-05-05&to=2020-05-05&sortBy=popularity&apiKey=1111111111111111111' (426): Upgrade Required

推荐答案

我找到了我认为的答案...

I found the answer I think ...

当我只需要一个月的数据时,它就可以正常工作.

When I call for just one month's wort of data, it works fine.

在这种情况下,我假设需要升级"表示我无法使用当前方法来调用更多数据,而必须从newsapi.org获得不同的(付费)授权

I am assuming "Upgrade required" in this instance means I can't use the current method to call for more data and have to get a different (paid) authorisation from newsapi.org

这篇关于(426):newsapi.org的需要升级错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆