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

Meraki cloud simulator: error 500 when connecting to Webhook receiver #3

Open
mpapazog opened this issue Nov 11, 2020 · 3 comments
Open
Assignees

Comments

@mpapazog
Copy link

When connecting the Meraki cloud simulator to my Webhook receiver script, I get an error 500 in my browser and the following output in the cloud simulator command line logs:
File "[...]\meraki-code\meraki_cloud_simulator\merakicloudsimulator\webhooksimulator.py", line 170, in webhooksettings
if not post_thread.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'

OS: Windows 10. Python version: 3.9.0

@wl4715
Copy link

wl4715 commented Nov 11, 2020

I'm getting the same error.

OS: MacOS Catalina. Python version: 3.8.5

@pheilmei
Copy link

pheilmei commented Feb 25, 2021

I think it is related to this:

Threading.Thread.isAlive has been deprecated and removed in Python 3.9 in favor of Threading.Thread.is_alive that is present in both Python 2 and 3 . Reference : python/cpython#15225

This results in an issue in webhooksimulator.py, if you start it as described here: https://developer.cisco.com/learning/devnet-express/devnet-express-meraki/meraki-monitoring/meraki-07-webhooks/step/3

AttributeError: 'Thread' object has no attribute 'isAlive'

if you start the cloud_simulator with python 3.9 or newer. Don't know why it happens with python 3.8.5 @wl4715

In the dCloud centOS environment we are using python 3.6, so here it is working fine

Solution should be to replace isAlive() with is_alive() in all threading modules, or at least in line 170 in file merakicloudsimulator/webhooksimulator.py

@annegentle
Copy link
Collaborator

@shweta-palande May be related to #6

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

5 participants