dalle2-in-python icon indicating copy to clipboard operation
dalle2-in-python copied to clipboard

Donwnload functionality doesn't work anymore

Open LinusKaiser opened this issue 2 years ago • 1 comments

Describe the bug it works fine to generate images. They also show up in the online GUI, but the downloading of those images seems to result in an error.

file_path = dalle.generate_and_download("sunny large garden of a luxury estate with beautiful plants and trees and some modern, futuristic and elegant garden facilities")
URLError: 
✔️ Task created with ID: task-7LUjlifds2cuzVKCt6aPEyzZ
⌛ Waiting for task to finish...
...task not completed yet
...task not completed yet
🙌 Task completed!
Output exceeds the size limit. Open the full output data in a text editor---------------------------------------------------------------------------
SSLCertVerificationError                  Traceback (most recent call last)
File [/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py:1348](https://file+.vscode-resource.vscode-cdn.net/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py:1348), in AbstractHTTPHandler.do_open(self, http_class, req, **http_conn_args)
   1347 try:
-> 1348     h.request(req.get_method(), req.selector, req.data, headers,
   1349               encode_chunked=req.has_header('Transfer-encoding'))
   1350 except OSError as err: # timeout error

File [/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1282](https://file+.vscode-resource.vscode-cdn.net/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1282), in HTTPConnection.request(self, method, url, body, headers, encode_chunked)
   1281 """Send a complete request to the server."""
-> 1282 self._send_request(method, url, body, headers, encode_chunked)

File [/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1328](https://file+.vscode-resource.vscode-cdn.net/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1328), in HTTPConnection._send_request(self, method, url, body, headers, encode_chunked)
   1327     body = _encode(body, 'body')
-> 1328 self.endheaders(body, encode_chunked=encode_chunked)

File [/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1277](https://file+.vscode-resource.vscode-cdn.net/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1277), in HTTPConnection.endheaders(self, message_body, encode_chunked)
   1276     raise CannotSendHeader()
-> 1277 self._send_output(message_body, encode_chunked=encode_chunked)

File [/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1037](https://file+.vscode-resource.vscode-cdn.net/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py:1037), in HTTPConnection._send_output(self, message_body, encode_chunked)
   1036 del self._buffer[:]
-> 1037 self.send(msg)
   1039 if message_body is not None:
   1040 
...
-> 1351         raise URLError(err)
   1352     r = h.getresponse()
   1353 except:

URLError:

LinusKaiser avatar May 20 '23 11:05 LinusKaiser

Thanks you for your first issue in dalle2-in-python

github-actions[bot] avatar May 20 '23 11:05 github-actions[bot]