# Errors when making request .bin with auth digest in Nodejs

**URL:** <https://community.postman.com/t/errors-when-making-request-bin-with-auth-digest-in-nodejs/51677>\
**Category:** Help Hub\
**Tags:** api-documentation, authentication, api\
**Created:** [September 12, 2023, 5:48pm UTC](https://community.postman.com/t/errors-when-making-request-bin-with-auth-digest-in-nodejs/51677 "2023-09-12T17:48:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![security-geoscient10](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@security-geoscient10](https://community.postman.com/u/security-geoscient10)\
**Post date:** [September 12, 2023, 5:48pm UTC](https://community.postman.com/t/errors-when-making-request-bin-with-auth-digest-in-nodejs/51677/1 "2023-09-12T17:48:34Z")

</div>

Hi everyone, I need to update a firmware using digest authentication so I send a form-data with a .bin file but I’m getting an error when using the Postman example, but the request in the Postman CLI works.

Attached is the code, the error received and the documents for the API I send the .bin to.  
Note: As shown in the code, I used the @mhoc/axios-digest-auth library to make the request with auth digest.

Note 2: Other requests in this same application use authentication digest and work well with this library.

Thanks in advance.

 ![codigo](https://us1.discourse-cdn.com/getpostman/original/3X/4/d/4d8cdccb9623adb5835c19853bfd296e47c2358e.png)  
 ![docs](https://us1.discourse-cdn.com/getpostman/original/3X/4/c/4cf0e93d496d7582caac2f16999381d5bbfbb4e6.png)  
 ![error](https://us1.discourse-cdn.com/getpostman/original/3X/f/9/f9c9d91c5ba03f9c4fc24209e355624529066b89.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 27, 2023, 5:49pm UTC](https://community.postman.com/t/errors-when-making-request-bin-with-auth-digest-in-nodejs/51677/2 "2023-10-27T17:49:21Z")

</div>

Closed on October 27, 2023, 5:49pm UTC

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.
