Skip to content

Bug report: "HTTP request" cannot read some binary data well #1220

Open
@mikecat

Description

@mikecat

Describe the bug

"HTTP request" sometimes fails to load correct data and replaces some part of data with ef bf bd (�).

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

  1. Use "HTTP request" with URL https://placehold.jp/150x150.png and default configuration.
  2. It fails due to cross-origin request, so use CORS Everywhere (Firefox extension) to disable the limitation.
  3. Use "Render Image" after that, seeing it shows "Invalid file type"
  4. Use "To Hex" to see wrong data ef bf bd inserted.

Expected behaviour

"HTTP request" should successfully fetch data from external site without changing any part of that to ef bf bd and "Render Image" should successfully show the image.

I feeded the image data to "Render Image" after fetching the data via this Python script:

import urllib.request

handle = urllib.request.urlopen("https://placehold.jp/150x150.png")
data = handle.read()
handle.close()

dump = ""

for c in data:
	dump += "%02x" % c

print(dump)

to make sure that "Render Image" supports the image data. It successfully showed the image.

Desktop (if relevant, please complete the following information):

  • Version: 9.28.0
  • Compile time: 26/03/2021 14:12:01 UTC
  • User-Agent:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
  • Browser: Firefox 89.0.2 (x64)
  • OS: Windows 10 Home 20H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions