HTTP Error 500 When Creating TCP Resource via Integration API #1344

Closed
opened 2026-04-05 19:07:34 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @AndrewPaglusch on 6/16/2025

I am on Pangolin v1.5.1 Community Edition.

When attempting to create a raw TCP resource via the integration API, I receive back a generic HTTP 500 error:

$ curl -X PUT 'https://dmz-api.REDACTED.com/v1/org/REDACTED/site/2/resource' -H 'Authorization: Bearer REDACTED' -H 'Content-Type: application/json' -d '{"name": "TCP Port 2345", "siteId": 2, "http": false, "protocol": "tcp", "proxyPort": 2345}'

{"data":null,"success":false,"error":true,"message":"An error occurred","status":500,"stack":null}

I compared the API call made by my browser when creating an identical TCP resource in the Pangolin UI, and despite the URL being different, the request appeared to be identical in almost every way, sans some extra headers my browser added in.

I see nothing in the container logs when making this API call.

Despite getting the error, the resource is created correctly.

*Originally created by @AndrewPaglusch on 6/16/2025* I am on Pangolin v1.5.1 Community Edition. When attempting to create a raw TCP resource via the integration API, I receive back a generic HTTP 500 error: ``` $ curl -X PUT 'https://dmz-api.REDACTED.com/v1/org/REDACTED/site/2/resource' -H 'Authorization: Bearer REDACTED' -H 'Content-Type: application/json' -d '{"name": "TCP Port 2345", "siteId": 2, "http": false, "protocol": "tcp", "proxyPort": 2345}' {"data":null,"success":false,"error":true,"message":"An error occurred","status":500,"stack":null} ``` I compared the API call made by my browser when creating an identical TCP resource in the Pangolin UI, and despite the URL being different, the request appeared to be identical in almost every way, sans some extra headers my browser added in. I see nothing in the container logs when making this API call. Despite getting the error, the resource is created correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1344