Hi,
I am getting the error (HTTP_UPDATE_FAILD Error (-106): Verify Bin Header Failed) when trying to establish the connection between nodemcu and bitbucket. I am getting this error because bitbacket is not delivering the binary file to nodemcu. Here, URL returns a HTML document with tons of java script code, not binary file. The below function, I am using in arduino ide to establish connection with bitbucket.
Please see this: I am able to establish the connection but not able to fetch the binary file.
t_httpUpdate_return ret = ESPhttpUpdate.update("https://bitbucket.org/MohitTripathi123/my_file1/src/master/image1.bin","","23 40 D5 EB C5 02 31 DA FF 93 D1 4F 5E C3 A7 D8 32 4F E9 82");
I am able to establish the connection and fetch the binary file from local/normal server, but not with the bitbucket.
How can I resolve this from bitbucket server side?
Hello @Mohit Tripathi,
Welcome to the Community!
The URL you're trying to fetch is not supposed to return the file content, it is URL of Bitbucket UI showing that file — this is why you get HTML with bunch of JS back.
What you need instead is the URL of the raw file content. You can get it in the context menu shown in UI:
For the file you mentioned the raw URL would look like this:
https://bitbucket.org/MohitTripathi123/my_file1/raw/master/image1.bin
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.