Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is logged after a Tech Support File Generate #89

Open
freakytoad1 opened this issue Jun 29, 2022 · 1 comment
Open

An error is logged after a Tech Support File Generate #89

freakytoad1 opened this issue Jun 29, 2022 · 1 comment
Labels

Comments

@freakytoad1
Copy link

freakytoad1 commented Jun 29, 2022

Describe the bug

After fully generating and returning a TSF an error is logged to the console. The TSF gets fully generated so the error is unexpected. This does not cause a Go error to be returned from the TechSupportFile function in pango.

Expected behavior

No errors logged if the file generates fine.

Current behavior

Error about an unsolicited response is logged to console.

Steps to reproduce

  1. call GetTechSupportFile()
  2. wait for it to generate and return
  3. log happens

Screenshots

2022/06/29 16:48:58 x.x.x.x: Retrieving API key
2022/06/29 16:49:00 (op) show system info
2022/06/29 16:49:01 (op) getting plugin info
2022/06/29 16:49:02 (export) tech support file
2022/06/29 16:49:02 (export) tech support job 42: 1 percent complete
2022/06/29 16:49:07 (export) tech support job 42: 10 percent complete
2022/06/29 16:49:41 (export) tech support job 42: 40 percent complete
2022/06/29 16:50:54 Unsolicited response received on idle HTTP channel starting with "<response status = 'error' code = '400'><result><msg>Illegal value for parameter &quot;category&quot; [tech-support]. Should be one of : [application-block-page, application-pcap, captive-portal-text, certificate, configuration, credential-block-page, credential-coach-text, data-filter-block-page, device-state, dlp-pcap, file-block-continue-page, file-block-page, filter-pcap, global-protect-portal-custom-help-page, global-protect-portal-custom-home-page, global-protect-portal-custom-login-page, global-protect-portal-custom-welcome-page, mfa-login-page, safe-search-block-page, ssl-cert-status-page, ssl-optout-text, tech-support, threat-pcap, url-block-page, url-coach-text, virus-block-page].</msg></result></response>"; err=<nil>

Context

Noticed since the feature came out. Again, this does not stop the TSF from generating or cause a Go error to return.

  • Version used: 0.8.0
  • Operating System and version (desktop or mobile): Windows 10
  • Performed through a pango.Panorama connection to a VM-50 on PAN-OS 10.1.5-h1
@shinmog
Copy link
Collaborator

shinmog commented Jul 1, 2022

So, I have seen this before, but it was sporadic, the same situation. An error gets output to the console, but no error is actually returned from the API calls.

This might actually be a PAN-OS bug, since the API calls are actually of type tech-support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants