Coder Social home page Coder Social logo

Bug since 0.90 about dashboard-api-python HOT 4 CLOSED

meraki avatar meraki commented on August 18, 2024
Bug since 0.90

from dashboard-api-python.

Comments (4)

marianne-butaye avatar marianne-butaye commented on August 18, 2024 1

I confirm this works now ;)

from dashboard-api-python.

shiyuechengineer avatar shiyuechengineer commented on August 18, 2024

Thanks for reporting this issue! It should be fixed now with this latest update; can you check please?

from dashboard-api-python.

marianne-butaye avatar marianne-butaye commented on August 18, 2024

Hi again,

I checked and now the SDK is repaired, but I found another bug, related as before to the root cause of #68, which is an unknown error thrown pretty often (30% of the time maybe or a bit below but pretty often still)(maybe a Timeout from Meraki ? I'm not sure, I never got as far as to get an error from your SDK about it yet, as there are still some bugs in between).

Below is the error message:

File "./app/lib/meraki_api.py", line 210, in _create_network
dev_1         |     organization_id, name=self.site.name, tags=tags, type="appliance", timeZone=self.site.timezone)
dev_1         |   File "/usr/local/lib/python3.7/site-packages/meraki/api/networks.py", line 279, in createOrganizationNetwork
dev_1         |     return self._session.post(metadata, resource, payload)
dev_1         |   File "/usr/local/lib/python3.7/site-packages/meraki/rest_session.py", line 227, in post
dev_1         |     response = self.request(metadata, 'POST', url, json=json)
dev_1         |   File "/usr/local/lib/python3.7/site-packages/meraki/rest_session.py", line 90, in request
dev_1         |     raise APIError(metadata, response)
dev_1         |   File "/usr/local/lib/python3.7/site-packages/meraki/exceptions.py", line 17, in __init__
dev_1         |     self.status = self.response.status_code if self.response.status_code else None
dev_1         | AttributeError: 'NoneType' object has no attribute 'status_code'

from dashboard-api-python.

shiyuechengineer avatar shiyuechengineer commented on August 18, 2024

OK this should be fixed too now, with a check added for NoneType in APIError exception.

from dashboard-api-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.