pyTenable icon indicating copy to clipboard operation
pyTenable copied to clipboard

pyTenable returns error 500 when configuring agent scan

Open vgiri-rms opened this issue 3 years ago • 1 comments

Describe the bug pyTenable sometime returns :

{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred. Please wait a moment and try your request again."}

To Reproduce When trying to configure/update scan with below updates-

tio.scans.configure({scanID}, starttime={newscantime})
tio.scans.configure({scanID}, enabled='True')
tio.scans.configure({scanID}, timezone='UTC')
tio.scans.configure({scanID}, rrules='FREQ=ONETIME')

Expected behavior Scan should be configured with above inputs.

System Information (please complete the following information):

  • OS: Windows 10 ,Ubuntu 18

Additional context Also Tried Tenable API using below parameter,Same error occurs, sometime scan gets updated but it gives 500 error. API EndPoint - https://cloud.tenable.com/scans/{scan_id}

`payload={       
      "settings":{
          'name':{scan_name},
          'starttime':{newscantime},
          'enabled':'True',
          'timezone':'UTC',
          'rrules':'FREQ=ONETIME'
      },
 "uuid": "{UUID}"

vgiri-rms avatar Apr 22 '22 04:04 vgiri-rms

Can you turn on the debug logs and respond with the logs from the failed call? We would specifically be looking for an request and the response as well as the full traceback.

alpesh-te avatar Jun 09 '22 03:06 alpesh-te

Closing due to inactivity.

aseemsavio avatar Sep 30 '22 07:09 aseemsavio