educative.io

Error In Running the Serverless Function

Could you check this error and provide the fix please

Output
1.67s
Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/requests/models.py”, line 910, in json
return complexjson.loads(self.text, **kwargs)
File “/usr/lib/python3.8/json/init.py”, line 357, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.8/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.8/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 6, in
print(result.json())
File “/usr/local/lib/python3.8/dist-packages/requests/models.py”, line 917, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value]

404 Page not found

Error: Page not found

The requested URL was not found on this server.

: 1

Course: Data Science in Production: Building Scalable Model Pipelines - Learn Interactively
Lesson: - Echo Service - Data Science in Production: Building Scalable Model Pipelines