Intermittent error using XML Api

Not applicable

Intermittent error using XML Api

Sometimes I will get the following error:

<response status="error"><result><msg>Authentication failed: Invalid username or password </msg></result></response>

while using the XML Api and the "type=config&action=set&key=" parameters. Always, if I mannually copy the command that just failed into my browser and execute it, it works fine.

Has anyone else seen this behavior before?

The command that is failing is just the fifth or sixth command that is being executed, all with the same value of the key field, with the previous commands working correctly.

Thanks for your help!

Tags (1)
SRA
L4 Transporter

Re: Intermittent error using XML Api

Could you provide some info on : What PAN-OS version is this on? What are you using to run the api - curl, wget? Are the 5 or 6 queries run in a sequence or in parallel?

Not applicable

Re: Intermittent error using XML Api

We are running on 4.0.8

We are using .Net and WebRequest

All queries are run in sequence.

SRA
L4 Transporter

Re: Intermittent error using XML Api

I'm guessing you must already be URL encoding the key and other parameters. It is not apparent to me what the issue could be. Please open a case with support along with info on the actual commands used and other data in this thread.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!