Internal Server Error - panxapi

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Internal Server Error - panxapi

L0 Member

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:~$

3 REPLIES 3

L5 Sessionator

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

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

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

  • 3442 Views
  • 3 replies
  • 0 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!