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

Synchronization Issue with Meraki Dashboard #21

Open
pachecole opened this issue May 13, 2022 · 1 comment
Open

Synchronization Issue with Meraki Dashboard #21

pachecole opened this issue May 13, 2022 · 1 comment

Comments

@pachecole
Copy link

pachecole commented May 13, 2022

Hi
I've deployed it using docker latest version, but it don't sync with meraki dashboard:
image

The API key is correct and it can get the org ID and name:
image

When I select the SGT to sync it shows Meraki Missing:
image

And in the console log it shows the following error::
Job "sync_dashboard (trigger: interval[0:00:30], next run at: 2022-05-13 09:05:28 UTC)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/opt/app/adaptive_policy_sync/scripts/dashboard_monitor.py", line 334, in sync_dashboard
ingest_dashboard_data(dbs, log)
File "/opt/app/adaptive_policy_sync/scripts/dashboard_monitor.py", line 45, in ingest_dashboard_data
sgpolicies = meraki_read_sgpolicy(dashboard, org_id)
File "/opt/app/adaptive_policy_sync/scripts/meraki_addons.py", line 122, in meraki_read_sgpolicy
return db._session.get(metadata, resource)
File "/usr/local/lib/python3.7/site-packages/meraki/rest_session.py", line 268, in get
response = self.request(metadata, 'GET', url, params=params)
File "/usr/local/lib/python3.7/site-packages/meraki/rest_session.py", line 262, in request
raise APIError(metadata, response)
meraki.exceptions.APIError: organizations, getOrganizationAdaptivePolicyBindings - 404 Not Found, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtmplease wait a minute if the key or org was just newly created.

Also when I check the Match Report it shows:
image
image

Could you review that bug? Thanks in advance

@pachecole
Copy link
Author

Hi
To rule out any issues with the API key, I've tested it at: https://developer.cisco.com/meraki/api-v1/#!create-organization-adaptive-policy-group and Postman and works correctly.

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