I’m implementing the web API in our product to manage activation and automatic renewal (LexActivator would require us to build with cgo which we are trying to avoid)
I’ve been able to activate and deactivate licenses just fine, but am getting an INVALID_ACTIVATION_FINGERPRINT error when I try to renew with PATCH /v3/activations/{id}
I’m sending the exact same data in the PATCH request as in the POST request which creates the activation, the fingerprints are identical:
carson@archlinux ~/g/s/g/c/orchesto> go run main.go -activate B93413-C6CB8F-4FE284-21D6BA-7A93AA-91E25A
POST /activations:
{
"key": "B93413-C6CB8F-4FE284-21D6BA-7A93AA-91E25A",
"metadata": [],
"os": "linux",
"fingerprint": "9b3031cbdbeeaf97f51b647525389def90200008fa1d2cde86752ca839957aac",
"hostname": "archlinux",
"appVersion": "0.0.0",
"userHash": "6557a98c5b070d56c568b3bd8fe978cb1ea14a58940941e1a80da510df2d55dc",
"productId": "a6ec15de-49a6-4f9a-9625-5121a35167c1"
}
carson@archlinux ~/g/s/g/c/orchesto> go run main.go -renew
PATCH /activations/9f06dce9-c379-4caf-a34b-871ac7438e37:
{
"key": "B93413-C6CB8F-4FE284-21D6BA-7A93AA-91E25A",
"metadata": [],
"os": "linux",
"fingerprint": "9b3031cbdbeeaf97f51b647525389def90200008fa1d2cde86752ca839957aac",
"hostname": "archlinux",
"appVersion": "0.0.0",
"userHash": "6557a98c5b070d56c568b3bd8fe978cb1ea14a58940941e1a80da510df2d55dc",
"productId": "a6ec15de-49a6-4f9a-9625-5121a35167c1"
}
main: <ERROR> Could not renew license: API Error INVALID_ACTIVATION_FINGERPRINT (400 Bad Request) Server sync failed!
The activation id in the endpoint is correct, I pull it straight from the activation token and confirm in our dashboard that it’s right (and the rest of the details appear correct as well when printing the stored license data:)
carson@archlinux ~/g/s/g/c/orchesto> go run main.go -license
Product key: B93413-C6CB8F-4FE284-21D6BA-7A93AA-91E25A
Key: B93413-C6CB8F-4FE284-21D6BA-7A93AA-91E25A
ProductID: a6ec15de-49a6-4f9a-9625-5121a35167c1
ActivationID: 9f06dce9-c379-4caf-a34b-871ac7438e37
Type: node-locked
Issued At: 2018-31-10 09:42:03 UTC
Expires: 2019-31-10 00:43:12 UTC
Renew By: 2018-31-10 10:42:03 UTC
Renew By Latest: (no grace period included in license)
Renew Interval: 1h0m0s
Operating System: linux
Node Fingerprint: 9b3031cbdbeeaf97f51b647525389def90200008fa1d2cde86752ca839957aac
Does the invalid fingerprint error refer to the node fingerprint I send in the request or is there something else about the request that isn’t right?