Next.js Discord

Discord Forum

Vercel Serverless Function Error

Unanswered
American black bear posted this in #help-forum
Open in Discord
Avatar
American black bearOP
Trying to run flask app

and I'm getting this error:

[ERROR] 2023-06-24T00:11:59.682Z fb698565-a747-4098-b5df-d6019600d48b Exception on / [POST]
Traceback (most recent call last):
File "/var/task/spotipy/oauth2.py", line 115, in _get_user_input
return raw_input(prompt)
NameError: name 'raw_input' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/var/task/flask/app.py", line 2190, in wsgi_app
racks
return self.playlist_items(playlist_id, fields, limit, offset,
File "/var/task/spotipy/client.py", line 707, in playlist_items
return self._get(
File "/var/task/spotipy/client.py", line 323, in _get
return self._internal_call("GET", url, payload, kwargs)
File "/var/task/spotipy/client.py", line 247, in _internal_call
headers = self._auth_headers()
File "/var/task/spotipy/client.py", line 238, in _auth_headers
token = self.auth_manager.get_access_token(as_dict=False)
File "/var/task/spotipy/oauth2.py", line 535, in get_access_token
"code": code or self.get_auth_response(),
File "/var/task/spotipy/oauth2.py", line 499, in get_auth_response
return self._get_auth_response_interactive(open_browser=open_browser)
File "/var/task/spotipy/oauth2.py", line 450, in _get_auth_response_interactive
response = self._get_user_input(prompt)
File "/var/task/spotipy/oauth2.py", line 117, in _get_user_input
return input(prompt)
EOFError: EOF when reading a line

0 Replies