Open-Interface icon indicating copy to clipboard operation
Open-Interface copied to clipboard

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

Open graysonchalmers opened this issue 10 months ago • 12 comments

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

graysonchalmers avatar Jan 16 '25 16:01 graysonchalmers

+1 Getting the same on Mac with 0.8.0

benarent avatar Jan 16 '25 21:01 benarent

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.

AmberSahdev avatar Jan 16 '25 21:01 AmberSahdev

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.

graysonchalmers avatar Jan 16 '25 21:01 graysonchalmers

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

AmberSahdev avatar Jan 16 '25 21:01 AmberSahdev

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

graysonchalmers avatar Jan 16 '25 22:01 graysonchalmers

@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 avatar Jan 17 '25 00:01 AmberSahdev

@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

AmberSahdev avatar Jan 17 '25 00:01 AmberSahdev

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

benarent avatar Jan 17 '25 00:01 benarent

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?

graysonchalmers avatar Jan 17 '25 16:01 graysonchalmers

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

FisherBubble avatar Feb 03 '25 22:02 FisherBubble

+1

davidfurlong avatar Mar 07 '25 17:03 davidfurlong

+1 Same error on MacOS 15.3.2 using OpenAI key, v0.9.0

ed-gilsangwoo avatar Mar 24 '25 15:03 ed-gilsangwoo