OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
52.44k stars 4.63k forks source link

Keep getting JSONDecodeError when using computer.browser #1205

Open legaltextai opened 5 months ago

legaltextai commented 5 months ago

Describe the bug

the computer.browser.search keeps returning this error:


      971     return complexjson.loads(self.text, **kwargs)                                                                                     
      972 except JSONDecodeError as e:                                                                                                          
      973     # Catch JSON-related errors and raise as requests.JSONDecodeError                                                                 
      974     # This aliases json.JSONDecodeError and simplejson.JSONDecodeError                                                                
  --> 975     raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)                                                                                

  JSONDecodeError: Expecting value: line 2 column 1 (char 1) ```

### Reproduce

computer.browser.search

### Expected behavior

it was returning search results just fine a week ago 

### Screenshots

_No response_

### Open Interpreter version

0.2.4

### Python version

3.11

### Operating System name and version

linux

### Additional context

_No response_
ibndias commented 5 months ago

Seems like they made some change to the computer API response format

legaltextai commented 5 months ago

In which one? I don't see any fresh releases.

tensiondriven commented 5 months ago

I'm encountering the same; I was encountering this on an earlier version of interpreter, but after updating, same error.

CyanideByte commented 5 months ago

This is related to the search api url being dead.

legaltextai commented 5 months ago

I see it 's been fixed now. Thank you!