Internal Server Error - panxapi

Reply
L0 Member

Internal Server Error - panxapi

Getting internal server error when using panxapi (both perl and python version). Anybody have any idea why?

anonymous:~$ panxapi  -sxr /config/devices/entry/vsys/entry/zone

show: LWP::UserAgent: 500 Internal Server Error

anonymous:~$

anonymous:~$

anonymous:~$ panxapi  -sxr "/config/devices/entry/vsys/entry/zone"

show: LWP::UserAgent: 500 Internal Server Error

anonymous:~$

anonymous:~$ panxapi.py  -sxr /config/devices/entry/vsys/entry/zone

show: URLError(reason): Internal Server Error

anonymous:~$

anonymous:~$

anonymous:~$ panxapi.py  -sxr "/config/devices/entry/vsys/entry/zone"

show: URLError(reason): Internal Server Error

anonymous:~$

L5 Sessionator

Re: Internal Server Error - panxapi

Suggest posting this to DevCenter.

:

Documentation:

  $ perldoc PAN::Util

  $ perldoc PAN::CLI

  $ perldoc PAN::XAPI

  $ perldoc PAN::RC

  $ perldoc PAN::Commit

  $ perldoc PAN::Template

  $ perldoc panxapi

  $ perldoc panxapit

  $ perldoc panaddr

  $ perldoc pancli

  $ perldoc panamount

  $ perldoc expthreat

L3 Networker

Re: Internal Server Error - panxapi

I would guess it happens with curl also?

  $ KEY='cBwvtXHyrHp9EkOmJ/3PxYV5QG9XiMEsJRoBMhhh1Vw='

  $ XPATH=/config/devices/entry/vsys/entry/zone

  $ HOST=172.29.9.253

  $ curl -k "https://$HOST/api/?type=config&action=show&key=$KEY&xpath=$XPATH"

you could try to tail these logs while performing the request to see if

anything useful shows up.  I would log a case if something obvious isn't

seen.

  mp-log ms.log

  mp-log php.debug.log

  mp-log appWeb.log

  webserver-log error.log

L0 Member

Re: Internal Server Error - panxapi

Not sure what was going on but I rebooted the server and now it works. Also not sure how and why that solved but I guess the host was due for a reboot anyway. Thanks

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!