open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

Keep getting JSONDecodeError when using computer.browser

Open legaltextai opened this issue 1 year ago • 5 comments
trafficstars

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_

legaltextai avatar Apr 14 '24 11:04 legaltextai

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

ibndias avatar Apr 17 '24 03:04 ibndias

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

legaltextai avatar Apr 17 '24 11:04 legaltextai

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

tensiondriven avatar Apr 21 '24 02:04 tensiondriven

This is related to the search api url being dead.

CyanideByte avatar Apr 22 '24 01:04 CyanideByte

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

legaltextai avatar Apr 24 '24 21:04 legaltextai