Skip to content

[Integration API] GET /site-resource/{siteResourceId} not working #2743

@ninofaivre

Description

@ninofaivre

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 :

  • free tier pangolin.net hosted
  • self hosted v1.15.3 on NixOS

To Reproduce

Just create a site-resource, get its id via /org/{orgId}/site-resources and 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions