# Http\_request streaming callback does not stream chunks anymore

**URL:** <https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298>\
**Category:** Developers\
**Created:** [March 4, 2022, 1:55pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298 "2022-03-04T13:55:18Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [March 30, 2022, 6:47am UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/21 "2022-03-30T06:47:02Z")

</div>

Merging the fixes takes a little time in order to make sure it doesn’t cause other issues and break more things than it fixes. I would estimate there’s about a week left of work (maybe a little more or less) before we can get a new icx-proxy out.

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [March 30, 2022, 3:49pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/22 "2022-03-30T15:49:00Z")

</div>

Does this only affect icxproxy? I streaming form standard canisters xxxxxxxx.ic0.app affected?

---

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [March 30, 2022, 6:18pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/23 "2022-03-30T18:18:47Z")

</div>

This bug should only impact icx-proxy/the raw subdomain. That said, I’m not sure the service-worker/non-raw currently supports streaming.

---

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [April 4, 2022, 8:08pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/24 "2022-04-04T20:08:42Z")

</div>

Running the fixed build through final QA to (hopefully 🤞) deploy in the next couple days.

---

<div class="post-metadata">

**Author:** ![jzxchiang](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jzxchiang/32/2592_2.png) [@jzxchiang](https://forum.dfinity.org/u/jzxchiang)\
**Post date:** [April 6, 2022, 12:49am UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/25 "2022-04-06T00:49:28Z")

</div>

Just to be clear, this bug only affected users who used a custom `Token` type right?

Also, will dfx be updated with a new version to include this new icx-proxy? I believe they are now bundled together.

---

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [April 6, 2022, 4:14pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/26 "2022-04-06T16:14:47Z")

</div>

A DFX update is also in the works. Note that advanced users can always replace the icx-proxy with the latest and greatest.

I think the current state of the bug impacts a wide variety of token/callback types, all of which should be resolved when this fix goes out. It more depends on what candid hacks the canister was using (now no hacks should be needed, but all hacks should be accepted).

---

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [April 6, 2022, 4:20pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/27 "2022-04-06T16:20:52Z")

</div>

The QA test went well, but Atlassian decided to [blow up](https://status.atlassian.com/) completely unrelatedly. While both our status page and ticketing system remains down, we are hesitant to deploy this.

Hopefully Atlassian is able to resolve their issues quickly.

---

<div class="post-metadata">

**Author:** ![AlliDoizCode](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/allidoizcode/32/1151_2.png) [@AlliDoizCode](https://forum.dfinity.org/u/AlliDoizCode)\
**Post date:** [April 9, 2022, 1:03pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/28 "2022-04-09T13:03:10Z")

</div>

any update on when we should expect this to be live

---

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [April 12, 2022, 3:23pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/29 "2022-04-12T15:23:58Z")

</div>

Based on Atlassian’s [status updates](https://jira-software.status.atlassian.com/), their restoration is progressing at a rate of about 5% per day. Assuming that remains constant, the expected value for our ticketing system restoration time is 6 days. But it is random, it could get restored tomorrow, it could get restored in 12 days, just depends on how lucky we get.

After the restoration it should be just a couple days to deploy.

---

<div class="post-metadata">

**Author:** ![NS01](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ns01/32/9816_2.png) [@NS01](https://forum.dfinity.org/u/NS01)\
**Post date:** [April 12, 2022, 4:49pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/30 "2022-04-12T16:49:45Z")

</div>

Ouch! Not what I wanted to hear ☹

---

<div class="post-metadata">

**Author:** ![Daniel-Bloom](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/daniel-bloom/32/2862_2.png) [@Daniel-Bloom](https://forum.dfinity.org/u/Daniel-Bloom)\
**Post date:** [April 13, 2022, 2:18am UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/31 "2022-04-13T02:18:24Z")

</div>

Update! Though Jira remains down, we have been able to mitigate and successfully deploy the fix. It should now be live and available! If you run into any issues, please report them here.

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [April 13, 2022, 5:48am UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/32 "2022-04-13T05:48:48Z")

</div>

Thanks @Daniel-Bloom 🥳. Looks good, tested a 4mb jpg image with the same repo provided above locally and on mainnet (without any new deployment), the image was download and displayed entirely in both cases.

 ![Capture d’écran 2022-04-13 à 07.42.52](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/c/c21afcf08abe397c92236a5796f21dc99677cf8f.jpeg)  
 ![Capture d’écran 2022-04-13 à 07.45.26](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/0/02380d15554925b291721c86f72d5323f4912655.jpeg)

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [April 15, 2022, 7:19am UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/33 "2022-04-15T07:19:30Z")

</div>

If we want this fixed on the local replica(dfx) what do we need to do?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [April 15, 2022, 7:47am UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/34 "2022-04-15T07:47:38Z")

</div>

You are right I still have the issue locally to. I assumed it was alright because UI wise the image was alright but that was already the case with .jpg. To reproduce the issue I should have used .png 🤦‍♂️.

@Daniel-Bloom what should we / I upgrade to test locally? dfx?

 ![Capture d’écran 2022-04-15 à 09.45.36](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/2/236247e26eb7c4aa8b2049531ef824ffef6a578b.jpeg)

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [April 15, 2022, 8:14pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/35 "2022-04-15T20:14:06Z")

</div>

Hey @Daniel-Bloom I think this was deleted when the code was merged…where is it now? Is it easy to compile/replace on a local replica?

---

<div class="post-metadata">

**Author:** ![ericswanson](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ericswanson/32/622_2.png) [@ericswanson](https://forum.dfinity.org/u/ericswanson)\
**Post date:** [April 15, 2022, 8:23pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/36 "2022-04-15T20:23:00Z")

</div>

To use an updated icx-proxy with dfx locally before we’ve released a dfx version that incorporates it, you can do this:

- download an icx-proxy release from [Releases · dfinity/icx-proxy · GitHub](https://github.com/dfinity/icx-proxy/releases) (extract `icx-proxy` from either binaries-linux.tar.gz or binaries-macos.tar.gz)
- export DFX\_ICX\_PROXY\_PATH=`<path to icx-proxy>`
- run `dfx start`

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [April 15, 2022, 8:29pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/37 "2022-04-15T20:29:27Z")

</div>

> [@ericswanson](#):
>
> DFX\_ICX\_PROXY\_PATH

What directory would the current one be in? Would it be advisable to just overwrite what is there now to make sure we get an update in the future?

Edit: /Users/[user]/.cache/dfinity/versions/0.9.3/?

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [April 15, 2022, 8:40pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/38 "2022-04-15T20:40:29Z")

</div>

Any idea how to deal with this:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/1/1e489582542b3d6b8ef350119576ce6661680879.png)

Edit: from the dir:

xattr -dr com.apple.quarantine icx-proxy

---

<div class="post-metadata">

**Author:** ![ericswanson](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ericswanson/32/622_2.png) [@ericswanson](https://forum.dfinity.org/u/ericswanson)\
**Post date:** [April 15, 2022, 8:49pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/39 "2022-04-15T20:49:52Z")

</div>

The current one will be in `$(dfx cache show)/icx-proxy`. Yes, you can overwrite the binary at that path instead, if you want.

---

<div class="post-metadata">

**Author:** ![ericswanson](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ericswanson/32/622_2.png) [@ericswanson](https://forum.dfinity.org/u/ericswanson)\
**Post date:** [April 15, 2022, 11:00pm UTC](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298/40 "2022-04-15T23:00:02Z")

</div>

I think you can right-click “open”, and it will ask you to verify once that it’s ok. Or maybe it’s Option open.

[Previous page](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298.md?page=1)

[Next page](https://forum.dfinity.org/t/http-request-streaming-callback-does-not-stream-chunks-anymore/11298.md?page=3)
