meraki / dashboard-api-python

Official Dashboard API library (SDK) for Python
MIT License
293 stars 154 forks source link

The asyncio version of some functions are having issue #165

Closed wowkmw closed 3 years ago

wowkmw commented 3 years ago

Hi,

The networks.getNetworkEvents get the following runtime error when executed: RuntimeWarning: coroutine 'AsyncRestSession._get_pages_legacy' was never awaited events = await aio_dashboard.networks.getNetworkEvents(

The wireless.getDeviceWirelessStatus get the following runtime error when executed: RuntimeWarning: coroutine 'AsyncRestSession.get' was never awaited for ssid in await aio_dashboard.wireless.getDeviceWirelessStatus(device.get("serial")).get("basicServiceSets"):

While in the meantime, other Meraki functions work just fine.

Some help is appreciated!

wowkmw commented 3 years ago

Note: everything is executed under the async with meraki.aio.AsyncDashboardAPI():

wowkmw commented 3 years ago

image Hope that this helps...

wowkmw commented 3 years ago

Hi all, I just realized that for the listed functions I chained additional action right after calling it, so the await keyword didn't really wait for the meraki function to finish its job. I'm closing this issue now, sorry for the confusion!