202150 - Invalid or Unexpected Response from Fortinet Device
Uploading.Agent error code #202150 indicates that the Fortinet device returned a response that the agent could not parse or that did not match the expected format. The request was sent and a response was received, but the response content was invalid.
This error is distinct from connection (#202000) or authentication (#202001) failures. Error #202150 means communication was established and the request was processed, but the response was not in the expected JSON-RPC or REST API format.
Common causes include:
Steps to Resolve
Verify the URL Configuration
https://fmg.example.com). The agent appends /jsonrpc automatically.
For FortiGate (Direct): the URL should point to the FortiGate's base URL (e.g., https://fw.example.com). The agent appends API paths automatically.
Do not include trailing slashes or API paths in the URL
Check for Intercepting Proxies
curl -k https://<hostname>/jsonrpc
The response should be JSON. If you receive HTML, an intermediary is intercepting the request.
Check Agent Logs for Details
"invalid or unexpected response" or "failed to parse" messages
Verify Firmware Compatibility
/api/v2/monitor/system/external-resource/dynamic) requires FortiOS 7.2.1 or later
FortiManager JSON-RPC proxy (/sys/proxy/json) support varies by FortiManager version
Still Having Issues?
We can help you out, contact us at support@knocknoc.io.