Error execution L3_student for Building an Autonomous Web Agent (video with code example)

I executed the Jupiter notebook at the DeepLearning.AI portal.

All previous cells were executed without any problem.

For the following cell: session = multionClient.create_session(url)

I received the following error:

JSONDecodeError                           Traceback (most recent call last)
File /usr/local/lib/python3.11/site-packages/multion/sessions/client.py:117, in SessionsClient.create(self, url, local, agent_id, mode, use_proxy, browser_params, include_screenshot, optional_params, request_options)
    114         raise UnprocessableEntityError(
    115             typing.cast(HttpValidationError, construct_type(type_=HttpValidationError, object_=_response.json()))  # type: ignore
    116         )
--> 117     _response_json = _response.json()
    118 except JSONDecodeError:

File /usr/local/lib/python3.11/site-packages/httpx/_models.py:832, in Response.json(self, **kwargs)
    831 def json(self, **kwargs: typing.Any) -> typing.Any:
--> 832     return jsonlib.loads(self.content, **kwargs)

File /usr/local/lib/python3.11/json/__init__.py:346, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    343 if (cls is None and object_hook is None and
    344         parse_int is None and parse_float is None and
    345         parse_constant is None and object_pairs_hook is None and not kw):
--> 346     return _default_decoder.decode(s)
    347 if cls is None:

File /usr/local/lib/python3.11/json/decoder.py:340, in JSONDecoder.decode(self, s, _w)
    339 if end != len(s):
--> 340     raise JSONDecodeError("Extra data", s, end)
    341 return obj

JSONDecodeError: Extra data: line 1 column 5 (char 4)

During handling of the above exception, another exception occurred:

ApiError                                  Traceback (most recent call last)
Cell In[6], line 1
----> 1 session = multionClient.create_session(url)

Cell In[3], line 14, in MultiOnClient.create_session(self, url)
     12 def create_session(self, url):
     13     """Create a new agent session"""
---> 14     session = self.client.sessions.create(url=url,
     15                                           include_screenshot=True)
     16     self.session_id = session.session_id
     17     self.current_url = session.url

File /usr/local/lib/python3.11/site-packages/multion/sessions/wrapped_client.py:30, in WrappedSessionsClient.create(self, *args, **kwargs)
     28 error_event = ErrorEvent(exception=e)
     29 agentops.record(error_event)
---> 30 raise e

File /usr/local/lib/python3.11/site-packages/multion/sessions/wrapped_client.py:26, in WrappedSessionsClient.create(self, *args, **kwargs)
     24     agentops.start_session(tags=["multion-sdk"])
     25 try:
---> 26     return super().create(*args, **kwargs)
     27 except Exception as e:
     28     error_event = ErrorEvent(exception=e)

File /usr/local/lib/python3.11/site-packages/multion/sessions/client.py:119, in SessionsClient.create(self, url, local, agent_id, mode, use_proxy, browser_params, include_screenshot, optional_params, request_options)
    117     _response_json = _response.json()
    118 except JSONDecodeError:
--> 119     raise ApiError(status_code=_response.status_code, body=_response.text)
    120 raise ApiError(status_code=_response.status_code, body=_response_json)

ApiError: status_code: 500, body: 500 error