Comments (13)
PyJWT seems to be your issue. If you take a look at the requirements file, you should be using PyJWT 2.0.1.
from zoomus.
Hi @lrhazi . Sorry to hear about your troubles!
What I've seen happen to folks in the past is that it's caused by an older version of PyJWT
that was causing the issue. If you are sure that is not the culprit, have you tried to manually make requests to the Zoom API from that server?
from zoomus.
Thanks @prschmid I am pretty sure am using same python version and same pip packages, but I will try to force rebuilds of the containers.
I tested with curl, using a token generated from my python script as follows:
print(f"Token: {client.config['token']}")
and it works:
[root@69981eb9a60f zoom]# curl --header "Content-Type: application/json" --header "Authorization: Bearer $TOK" --request POST --data '{"topic":"xyz","type":1}' https://api.zoom.us/v2/users/me/meetings
{"uuid":"BV8GlLhtTUKGovrlp4Y1sg==","id":....
from zoomus.
Not sure if this helps but FYI, this prints Invalid access token error, then the curl runs successfully printing list of users...
from zoomus import ZoomClient
import json
client = ZoomClient('<key>','<secret>')
user_list_response = client.user.list()
user_list = json.loads(user_list_response.content)
print(user_list)
token = client.config['token']
import subprocess
subprocess.call([
"curl",
"--header",f"""Authorization: Bearer {token.decode("utf-8") }""",
"https://api.zoom.us/v2/users"
])
from zoomus.
What version of PyJWT and what version of zoomus are you using, @lrhazi ? I have also seen this error in the same situations that @prschmid described.
from zoomus.
[root@69981eb9a60f zoom]#
[root@69981eb9a60f zoom]# python3 -V
Python 3.6.8
[root@69981eb9a60f zoom]# pip3 list | grep -i jw
PyJWT (1.7.1)
[root@69981eb9a60f zoom]#
from zoomus.
[root@69981eb9a60f zoom]# pip3 list | grep -i zoom
zoomus (1.1.6)
[root@69981eb9a60f zoom]#
from zoomus.
If you'd like more info on why it's important to bump to 2.0.1 you can take a look at #157
from zoomus.
Thanks guys. will upgrade PyJWT.
from zoomus.
Hello there, I'm having the same issue-
when I initialize the ZoomClient:
client = ZoomClient(KEY,SECRET)
type(client.config['token'])
>"bytes"
After refreshing the JWT token:
client.refresh_token()
type(client.config['token'])
>"tuple"
I'm also on PyJWT 2.0.1
from zoomus.
Well that's new. That SOUNDS like you're on PyJWT 1.7 but you're sure you're on 2.0.1? Just for reference what version of zoomus?
from zoomus.
ah sorry you are correct! I read the installed versions from the wrong virtual env. Updating that env has fixed the errors. Thanks!
from zoomus.
Glad we were able to get everyone sorted! Closing this issue off for now. Happy coding.
from zoomus.
Related Issues (20)
- How to Delete recordings HOT 1
- How to list all the meetings and its info HOT 1
- Authorization header has bytes type marker HOT 3
- When i speak..my video automatically turns to hd mode.Why? and How to fix that? HOT 1
- documentation example does not specify meeting ID HOT 2
- Addition of sites(s) for zoom phone
- Getting invite text? HOT 4
- Getting Max retries exceeded with url
- client.meeting.update returning "Request body should be a valid JSON object"
- API to retrieve a new access token if expired when doing the request HOT 1
- migrate authentication from JWT to Server-to-Server OAuth HOT 11
- Refresh token is broken HOT 1
- I am getting the below error after the script runs for about 30 mins, anyone knows how to fix this? HOT 1
- check if meeting has started or ended
- AttributeError: 'UserComponentV2' object has no attribute 'get_settings'
- Cannot get the historical data from the client.phone.call_logs() method. HOT 1
- Update parameter names
- Anyone tried it ? HOT 2
- Remove Zoom API v1 Support in Code.
- Project Dead?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoomus.