Hi everyone, I’m very new on HubSpot API and integrations, just get my hand on it literally last week. I am in need of someone helping me on one specific error when doing command hs project upload.
In summary, the command works fine on my local laptop - both org and personal - but not on our org designated GitHub enterprise runner. And of course - as other org would do too - is sitting behind enterprise security tools (firewall, proxy, VPN, etc. you name it).
[DEBUG] Attempting to track usage of "project-upload" command[DEBUG] Sending usage event to authenticated endpoint[DEBUG] HubSpotHttpError:- message: The request was bad.- status: 400- statusText: Bad Request- method: get- code: ERR_BAD_REQUEST- derivedContext: {"accountId": ***,"request": "developer/projects/v1/by-name/sample-private-app"}
The thing is, although --debug is provided, we do not know which endpoint is hitting (like the full URL). So that with this information, we can ask our org SecOps team to discuss, allowlist, etc. We’re running blind now.
I’m currently swimming (and possibly drowning) in both HubSpot CLI source code (GitHub - HubSpot/hubspot-cli) and HubSpot Local Dev Lib (GitHub - HubSpot/hubspot-local-dev-lib) hoping to find something there, since the support doesn’t provide assistance on this.
So my humble question to all the HubSpot shifu here:
- Any idea how to find the needle in this pile of code? Any out-of-the-box idea you can suggest?
- How do we get the full endpoint URL straightaway from this error?