😄 你好~ 我是 yihong0618,生活工作在大连。 喜爱游戏,跑步,读书,编程和有趣的东西。 项目大多和这些相关。
你可以到我的网站来玩, 📫 如果你想聊聊,可以给我发邮件, 也可以来到我的 tg 频道
也欢迎赞助我杯可乐 Sponsor Me
Yesterday you said tomorrow.
记录下的跑步 13 年。
This project forked from acheong08/bingimagecreator
High quality image generation by Microsoft. Reverse engineered API.
License: The Unlicense
Hi there,
First of all, thank you for fixing this library, I was worried nobody was going to maintain it after it got archived. If you could help with this it would be greatly appreciated.
So I've tried using this library and I'm running into this error.
Oddly enough, this error does not happen in the original repository this forked off of. I'm using a Docker container and I can swap between yours and the old repository, and that one doesn't have this issue.
Traceback (most recent call last):
File "/usr/src/app/bingGPT.py", line 111, in ask
return image_generator.get_images(image_request.prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/BingImageCreator.py", line 133, in get_images
response = self.session.post(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 719, in send
extract_cookies_to_jar(self.cookies, request, r.raw)
File "/usr/local/lib/python3.11/site-packages/requests/cookies.py", line 137, in extract_cookies_to_jar
jar.extract_cookies(res, req)
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'extract_cookies'
It seems to me that Requests
itself is the one at fault? I couldn't find what would cause this from your code.
Looking at git blame I can't find any single line that would cause an error like this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.