Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

connecting with nodemcu with bitbucket ((HTTP_UPDATE_FAILD Error (-106): Verify Bin Header Failed)

Mohit Tripathi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2020

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?

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020

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:

 signing-key.gpg.enc — Bitbucket 2020-01-12 23-22-53.png

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events