mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 21:59:09 -05:00
[GH-ISSUE #2743] [Integration API] GET /site-resource/{siteResourceId} not working #8994
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 @ninofaivre on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2743
Describe the Bug
As said in the title this route in the integration API is not working.
Here is the error I get with a 400 status :
'Validation error: Invalid input: expected string, received undefined at "siteId"; Invalid input: expected string, received undefined at "orgId"'After taking a quick look at the code (even tho I have not done any ts and zod for a looooong time), I believe this bug is due to the zod schema expecting a siteId and an orgId but the route does not contains it.
So either the getSiteResource function should be working without it either the route needs to be updated with the correct path params.
Environment
I have been able to reproduce this bug in :
To Reproduce
Just create a site-resource, get its id via
/org/{orgId}/site-resourcesand then try to get it via/site-resource/{siteResourceId}. I think this issue is very old because it is happening on my selfhosted v1.15.3 AND on the app.pangolin.net hosted free tier.Expected Behavior
Should return me a site-resource.
@prath47 commented on GitHub (Apr 1, 2026):
@LaurenceJJones I would like to work on this. Looks good first issue for me.
@ninofaivre commented on GitHub (Apr 3, 2026):
/org/{orgId}/site/{siteId}/resource/nice/{niceId} seems to be broken too but in a different way, testing it with swagger I just get 404 (on the free hosted and self hosted)