-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Boards Manager URLs incorrect HTTP GET Range header field #6628
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
Comments
Sorry I totally misread the post |
Hi @kosza , can you paste here the output from the IDE console when the download fails? |
Only this: |
But if you click the link you are able to see the json, right? What happens if you add, for example, https://adafruit.github.io/arduino-board-index/package_adafruit_index.json ? |
From browser I see the correct json. Any ideas? |
Only one idea; maybe there is a stray file from a previous download attempt. |
You have right. I have deleted the jsons and now IDE downloaded the whole file. Thanks for your help. |
This is a good question. There is some code here Arduino/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java Line 68 in 31a9029
|
I checked DownloadableContributionsDownloader.java, I think it is ok.
I think you can remove the following code from line 165 and 186 in Arduino/arduino-core/src/cc/arduino/utils/network/FileDownloader.java BTW |
Yep, it enters that bogus condition only in a few very particular conditions... Since jsons are pretty small, I'd download them from 0 everytime to make sure this problem never happens again (instead, I'd leave the feature for bigger files like cores and toolchains) |
it worked !!!!!1 |
This is still a problem at least on my Mac with arduino 1.8.7. Library Manager freezes when trying to add a library. |
Can some somebody help me with the issue showed above. I tried removing all of the files and it still does nothing to help download the packages. In my IDE in the board manager... It refuses to download anything. |
worked, thank you |
I am using Arduino 1.8.3.
I added http://arduino.esp8266.com/stable/package_esp8266com_index.json to Boards Manager URLs and got a downloading error.
I checked the traffic and discovered that the HTTP request is incorrect: Range: bytes=26000-
It should be Range: bytes=0- or it shouldn't be.
Here is the http request and reply:
GET /versions/2.3.0/package_esp8266com_index.json HTTP/1.1
User-agent: ArduinoIDE/1.8.3 Java/1.8.0_121
Range: bytes=26000-
Host: arduino.esp8266.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2
Connection: keep-alive
HTTP/1.1 416 Requested Range Not Satisfiable
X-Powered-By: Express
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Sat, 06 May 2017 03:02:19 GMT
ETag: W/"6590-15bdbb53a78"
Content-Type: text/html; charset=utf-8
Content-Range: bytes */26000
X-Content-Type-Options: nosniff
Content-Length: 459
Date: Thu, 17 Aug 2017 06:23:05 GMT
Connection: keep-alive
RangeNotSatisfiableError: Range Not Satisfiable
at SendStream.error (/home/nodeuser/apps/download/node_modules/express/node_modules/send/index.js:275:31)
at SendStream.send (/home/nodeuser/apps/download/node_modules/express/node_modules/send/index.js:618:19)
at onstat (/home/nodeuser/apps/download/node_modules/express/node_modules/send/index.js:677:10)
at Object.oncomplete (fs.js:107:15)
Regards,
Kosza
The text was updated successfully, but these errors were encountered: