Hello Gumloop Support,
I’m new to Gumloop and trying to build a workflow that scrapes urgent news and downloads its image. The text is generated fine but the image URL is not coming through correctly, so no image is downloaded. and sometimes it tell me to '[INSERT YOUR RESPONSE HERE] even i alredy insert it
I tried connecting everything as best I could, and even tested manually with a known image URL which works. But the Ask AI node’s output doesn’t show a proper image URL, so I’m stuck.
Could you please help me understand why the image URL isn’t being extracted or passed properly? I shared the workflow link if that helps. Gumloop | Automation Builder
Thanks so much for your support!
Image Downloader Failed!
The code in the function body raised the following error:
Command exited with code 1 and error:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/util/url.py", line 423, in parse_url
host, port = _HOST_PORT_RE.match(host_port).groups() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'groups'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 433, in prepare_url
scheme, auth, host, port, path, query, fragment = parse_url(url)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/url.py", line 449, in parse_url
raise LocationParseError(source_url) from e
urllib3.exceptions.LocationParseError: Failed to parse: [INSERT YOUR RESPONSE HERE]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/index.py", line 22, in main
response = requests.get(image_url, stream=True, timeout=30)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 575, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 484, in prepare_request
p.prepare(
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 367, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 435, in prepare_url
raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: [INSERT YOUR RESPONSE HERE]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/index.py", line 65, in <module>
print('___FUNCTION_OUTPUT___\n' + str(main({'image_url': '[INSERT YOUR RESPONSE HERE] '})))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/index.py", line 25, in main
raise RuntimeError(f"Failed to download image from '{image_url}': {e}") from e
RuntimeError: Failed to download image from '[INSERT YOUR RESPONSE HERE] ': Failed to parse: [INSERT YOUR RESPONSE HERE]
