mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 05:39:49 -05:00
Redemption of Supporter Key fails when no organization is selected (Bug) #646
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 @l3pr-org on GitHub (Sep 5, 2025).
Originally assigned to: @miloschwartz, @Copilot on GitHub.
Summary
Title pretty much sums it up. When I received my Supporter Key and tried to redeem it, I was unsuccessful and kept seeing the "Invalid supporter key" response from the license activation API. I eventually realized that this was due to no organization being selected (top left of Pangolin admin dashboard, "Organization \n None selected"). Needless to say, once I selected my organization, redemption of the Supporter Key worked immediately.
Steps to reproduce
Screenshot_1.png: (failed to upload screenshots here for some reason) https://ibb.co/FL8FNBYV
An aside
Before I found the root cause of the issue, I went through some troubleshooting steps, which may rule out reasons for this bug occurring in the case that anyone is unable to reproduce the behavior. The following is excerpt (some edits made for clarity) of my troubleshooting steps from an email chain with someone from the Pangolin team.
Unfortunately, I was unsuccessful in redeeming that key. Here's what I've tried so far:
Screenshot_2.png: https://ibb.co/k2LWyFrd
root@vps-hostname:/home/pangolin# curl https://api.fossorial.io/api/v1/license/professional/activate
{"data":null,"success":false,"error":true,"message":"API Key is missing","status":401,"stack":null}
root@vps-hostname:/home/pangolin#
2025-08-25T03:26:30.406Z [debug]: POST /api/v1/supporter-key/validate
2025-08-25T03:26:33.260Z [debug]: Received data: [{"publicKey":"..."}]
Nothing else about whether key validation was successful or unsuccessful was observed in the log and the browser toast (popup notification) still says "Invalid Key \n Your supporter key is invalid."
Screenshot_3.png: https://ibb.co/xvB88DL
{"data":{"valid":false},"success":true,"error":false,"message":"Invalid supporter key","status":200}
To be extra sure, I attempted the request from my local machine with the same result.
@oschwartz10612 commented on GitHub (Sep 5, 2025):
Thanks for the super detailed response. Will look into fixing this!