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

Keep getting JSONDecodeError when using computer.browser #1205

Open
legaltextai opened this issue Apr 14, 2024 · 5 comments
Open

Keep getting JSONDecodeError when using computer.browser #1205

legaltextai opened this issue Apr 14, 2024 · 5 comments

Comments

@legaltextai
Copy link

legaltextai commented Apr 14, 2024

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
Copy link

ibndias commented Apr 17, 2024

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

@legaltextai
Copy link
Author

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

@tensiondriven
Copy link

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

@CyanideByte
Copy link
Contributor

This is related to the search api url being dead.

@legaltextai
Copy link
Author

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

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