INSRapperswil / piapi

Cisco Prime Infrastructure Python API
Apache License 2.0
20 stars 13 forks source link

API for pnp #11

Open smnmtzgr opened 7 years ago

smnmtzgr commented 7 years ago

Hi,

I am trying out the new API features for PNP at the moment. With your library for example: api.request("instance", params={"pnpProfileFolder": "Switch"})

But I get this error: raise PIAPIRequestError("An error has occured during the API invocation") main.PIAPIRequestError: An error has occured during the API invocation

Do you have an idea?

Regards, smnmtzgr

maximumG commented 7 years ago

Hello,

I will have to give it a try on a real Cisco PI server to really know what is happening. Unfortunately, I don't have access to any PI server at the moment as I changed job...

I can advice you to run the library in debug mode and use some breakpoints to know what are the return from the request method (request library).

Otherwise, if you give me an access to your Prime I can do the debug myself :-p

Maxime.