Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Unable to execute the request - 'NoneType' object has no attribute 'content' #39

Open
graysonchalmers opened this issue Jan 16, 2025 · 10 comments

Comments

@graysonchalmers
Copy link

graysonchalmers commented Jan 16, 2025

Hi all, I'm getting this error a few seconds after submitting, it thinks for maybe 5 seconds and then kicks out the error.

Exception Unable to execute the request - 'NoneType' object has no attribute 'content'

I'm on a win11 machine, and I'm including this context in the custom instructions.

Any ideas?

Image

@benarent
Copy link

+1 Getting the same on Mac with 0.8.0

@AmberSahdev
Copy link
Owner

Did you restart the app after setting the API key?
Let me know if that works, I'll make it clearer in the documentation and the settings page.

@graysonchalmers
Copy link
Author

graysonchalmers commented Jan 16, 2025

Yeah, I put in the key, tried (it gave a different error), found the instructions that say to restart first, restarted the app, and got the NodeType error.

Tried to debug a little: Wiped the key, restarted, new key, restarted, added win 11 custom instructions, restarted, and still got that same error unfortunately.

@AmberSahdev
Copy link
Owner

Thank you for help with debugging. Could you share your ~/.open-interface/settings.json if you can?

I should be able to replicate your setup and see what's wrong

@graysonchalmers
Copy link
Author

Here ya go. There isn't too much in there, hopefully this will be helpful.
settings.json

@AmberSahdev
Copy link
Owner

@graysonchalmers I think it's just that your API key is corrupt, try generating and inserting a new one? (and then also restart the app)

@AmberSahdev
Copy link
Owner

@benarent could you do the same please?

  1. Get OpenAI API key from https://platform.openai.com/settings/organization/api-keys,
  2. Set it in the settings window,
  3. Restart the app

@benarent
Copy link

benarent commented Jan 17, 2025

I did downgrade to one version, but after that I was able to get this to work.

But, after this I did get this crash after closing it. https://gist.github.com/benarent/d2e59ca7802f1319686f4f85d2086208

@graysonchalmers
Copy link
Author

graysonchalmers commented Jan 17, 2025

Damn, Same error. I tried:

  • 2 separate API keys
  • I tried downgrading to 7.0 and 6.0, but got the same error.

Image
(hahah I hope its not my bad spelling)

Does this one mean anything different, don't remember what I was doing when it came up unfortunately:

Image

Is there any other data or logs that I can pull that would be useful to help debug this?

@FisherBubble
Copy link

Hi I got the same error on MacOS as well? Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants