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

Some issues to consume APIs in 2024 #2

Open
edpb opened this issue Mar 27, 2024 · 0 comments
Open

Some issues to consume APIs in 2024 #2

edpb opened this issue Mar 27, 2024 · 0 comments

Comments

@edpb
Copy link

edpb commented Mar 27, 2024

I followed all steps in readne file, but its not getting clear on how we get all process running ok.
Rigth now, I can't access to first url: Groups, it refers to Unsupported token type: %s" % self.token_type

==========================================================
Starting at 2024-03-27 00:03:22 -07:00

<mendeley.session.MendeleySession object at 0x000001F15A507310> None https://api.mendeley.com/groups {'Accept': 'application/vnd.mendeley-group.1+json', 'user-agent': 'mendeley/0.3.2 CPython/3.9.5 Windows/10'} {'allow_redirects': True} GET
Traceback (most recent call last):
File "C:\Users\edevp\source\repos\MendeleyToNotion\MendeleyToNotion\src\mendeleyToNotion.py", line 82, in
for item in session.groups.iter():
File "C:\Python39\lib\site-packages\mendeley\resources\base.py", line 39, in iter
page = self._list(page_size, **kwargs)
File "C:\Python39\lib\site-packages\mendeley\resources\base.py", line 51, in _list
rsp = self._session.get(url, headers={'Accept': obj_type.content_type})
File "C:\Python39\lib\site-packages\requests\sessions.py", line 473, in get
return self.request('GET', url, **kwargs)
File "C:\Python39\lib\site-packages\mendeley\session.py", line 92, in request
rsp = self.__do_request(data, full_url, headers, kwargs, method)
File "C:\Python39\lib\site-packages\mendeley\session.py", line 108, in __do_request
rsp = super(MendeleySession, self).request(method, full_url, data, headers, **kwargs)
File "C:\Python39\lib\site-packages\requests_oauthlib\oauth2_session.py", line 276, in request
url, headers, data = self._client.add_token(url,
File "C:\Python39\lib\site-packages\oauthlib\oauth2\rfc6749\clients\base.py", line 188, in add_token
raise ValueError("Unsupported token type: %s" % self.token_type)
ValueError: Unsupported token type:

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

1 participant