mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 09:21:15 -05:00
[GH-ISSUE #805] Bug: Multiple API errors #16623
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kmanwar89 on GitHub (May 30, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/805
Originally assigned to: @miloschwartz on GitHub.
Hi,
I'm familiarizing myself with the Pangolin API to develop some automations (such as automatically adding a defined IP ruleset to every resource I create). I've encountered the following errors so far in testing:
1. While trying to delete an org, I receive a 500 "unknown error" status code. Relevant logs and screenshots are attached.
Is this possibly bug behavior?
Below screenshot showing a successful get listing the org as valid:
And API key permissions:
2. Unable to GET or DELETE roles (returns 404/400), but able to create successfully
I can also create a role successfully:
But it fails to GET the role I just created...
The role is seen in the GUI so I can confirm it exists there:
And from the PUT, I know it's roleId is "8", so when I pass that in the body of a DELETE, I receive a 400:
For brevity, I won't add more but I'd love to work with the developers to contribute documentation fixes if nothing else - I'm not a software developer, but if I'm pointed to where in the code these endpoints are at least documented, I'd be happy to contribute something there. Thanks!
@oschwartz10612 commented on GitHub (May 31, 2025):
Hi thanks for testing all of these things in the api. They sounds like real bugs that may have arisen from the shared code between both the integration api and dashboard API. Ill ping @miloschwartz to take a look.
@miloschwartz commented on GitHub (Jun 4, 2025):
I'll work on fixing the GET in the next release (seems to be missing from the router hence the not found error).
For the DELETE, it's not documented well, but the roleId that will be deleted needs to be passed in the URL params. The roleId in the body, is the new role to which the users previously present in the deleted role will be assigned.
@miloschwartz commented on GitHub (Jun 5, 2025):
Should be fixed in 1.5.0. Let me know if for some reason it's not!