Closed tubbo closed 4 years ago
It should raise a ProxyError
in the Sidekiq job as the CSV is being imported, so the user would not actually see anything.
As far as moving it to the plugin, I'm into that but I feel like if we're going to move this error over, we should just move the whole freedom patch into the plugin, as it's not relevant for any installation of Workarea that does not require a production server proxy.
The proxy in Commerce Cloud will return a 403 response with a special header when a request has not been allowed through. In this case, Workarea now raises an error describing the problem and how to go about solving it. This resolves an issue where previously, errors thrown as a result of a misconfigured proxy would be cryptic and hard to debug. With this more descriptive error, developers will be able to see from Sentry how they can resolve such a scenario.
Here's what someone might see if they trigger this error: