Renewal success redirects to a blank page #71

Open
opened 2022-10-30 21:50:11 +00:00 by dachary · 1 comment

Today I received the renewal mail. I was able to pay 🎉 . However, I then get redirected to a blank page /infra/create/loic/.

Hello dachary!

Your Gna! VM subscription is due for renewal. Please click the link
below to renew your subscription:

https://hosteadashboard.gna.org/billing/invoice/payment/[redacted]/


  • Instance Name: loic
  • Configuration: s1-2
  • Total Amount: 10.0 EUR

We appreciate your business!

Cheers,
Gna! team

Oct 30 17:41:41 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:41:41] "GET /login/ HTTP/1.1" 200 6767
Oct 30 17:42:23 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:23] "POST /billing/invoice/payment/z4pm6FO3j4cxTnDJvWs19s1KBQQU54CX/ HTTP/1.1" 302 0
Oct 30 17:42:23 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:23] "GET /billing/invoice/payment/z4pm6FO3j4cxTnDJvWs19s1KBQQU54CX/success/ HTTP/1.1" 302 0
Oct 30 17:42:23 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:23] "GET /login/ HTTP/1.1" 200 6767
Oct 30 17:42:24 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:24] "GET /infra/create/loic/ HTTP/1.1" 200 0
Today I received the renewal mail. I was able to pay 🎉 . However, I then get redirected to a blank page ` /infra/create/loic/`. > Hello dachary! > > Your Gna! VM subscription is due for renewal. Please click the link > below to renew your subscription: > > https://hosteadashboard.gna.org/billing/invoice/payment/[redacted]/ > > ----------------------------------------------------- > > - Instance Name: loic > - Configuration: s1-2 > - Total Amount: 10.0 EUR > > We appreciate your business! > > Cheers, > Gna! team > ``` Oct 30 17:41:41 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:41:41] "GET /login/ HTTP/1.1" 200 6767 Oct 30 17:42:23 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:23] "POST /billing/invoice/payment/z4pm6FO3j4cxTnDJvWs19s1KBQQU54CX/ HTTP/1.1" 302 0 Oct 30 17:42:23 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:23] "GET /billing/invoice/payment/z4pm6FO3j4cxTnDJvWs19s1KBQQU54CX/success/ HTTP/1.1" 302 0 Oct 30 17:42:23 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:23] "GET /login/ HTTP/1.1" 200 6767 Oct 30 17:42:24 gitea-host.lan.gna.org python3[2042303]: [30/Oct/2022 21:42:24] "GET /infra/create/loic/ HTTP/1.1" 200 0 ```

This is dumb, I should have seen it coming. When creating a new VM, we redirect user to the route that provisions VM from the payment received route.

The same thing is happening here: the payment received route isn't checking if the payment is a renewal or a fresh subscription.

Edit: the VM provisioning route (/infra/create/<vm-name>/) checks if the VM exists, so thankfully, we are not double-provisioning VMs. I'll implement the check in the payment received route as well

This is dumb, I should have seen it coming. When creating a new VM, we redirect user to the route that provisions VM from the payment received route. The same thing is happening here: the payment received route isn't checking if the payment is a renewal or a fresh subscription. Edit: the VM provisioning route (`/infra/create/<vm-name>/`) checks if the VM exists, so thankfully, we are not double-provisioning VMs. I'll implement the check in the payment received route as well
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hostea/dashboard#71
There is no content yet.