Skip to main content

Occasionally there's a problem with buying a subscription

https://powrteam.slack.com/archives/C0ANLSP0F/p1646800757044689

message screenshot

As we can see on the screenshot, Braintree clientTplem token was not generated. This happens because a request to the /braintree_client_token.json endpoint fails. One if the reasons for failing could be in /powr/config/initializers/rack_attack.rb, where we have a configuration that protects this endpoint of being spammed. You can check if some IP is banned by checking the Rails console:

screenshot

Solution is to wait for ban to end or delete the IP from the list.