If services response from embed.ly is gzipped, no providers can be found

Created on 5 October 2012, over 12 years ago
Updated 26 November 2024, 4 months ago

This is an intermittent issue that seems to depend on what embed.ly is doing. I found that sometimes my site would have no embed.ly providers. Debugging through, I found it was because the response we were getting back from api.embed.ly/1/services was some kind of gibberish. It was perfectly fine JSON when looking at it in a browser. It seems the response is gzipped, and nothing was handling the decompression.

I saw this happen yesterday, but it cleared up on its own, so I wrote it off. It happened again today though, so it'll probably happen again.

There's two ways I see to fix this:

  1. Send headers with the request to disable compression
  2. Decompress the result when we get it
πŸ› Bug report
Status

Closed: outdated

Version

0.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MPetrovic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024