An issue with adapty activation?
complete
M
Max Nelson
Hello,
I am working on the store page for my app and am receiving a 404 error - stating 'PurchaseContainer not found' along with a url.
Full error below:
[Error: #2003 (badRequest): Request is unsuccessful. https://api.adapty.io/api/v1/sdk/in-apps/purchase-containers/paywall_one/?profile_id=40962bd6-e3de-457f-8112-a6ae0b9c8184&locale=en Code: 404, Response: {"errors":[{"detail":"PurchaseContainer Not Found","status":"404","source":{"pointer":"/data"},"code":"not_found"}]}]
And here is the error of the URL if you don't want to go to it.
{
errors: [
{
detail: "Authentication credentials were not provided.",
status: "401",
source: {
pointer: "/data"
},
code: "not_authenticated"
}
]
}
And the implementation is correct according to the docs
// App.js //
useEffect(() => { adapty.activate('MY_ADAPTY_API_KEY') }, [])
Any ideas - looking at similar discussions but not finding anything of use.
Thanks!
-M
Adapty Support
complete
Adapty Support
Hey Max, thanks for reaching out!
If I understand correctly, there are two potential issues:
The auth issue is not something that occurs in the SDK, but rather if you try to open that link on the web. In SDK, assuming that you have the keys specified, and the SDK gets activated, further requests will go smoothly.
The 404 error is most likely caused by specifying a non-existing id for getPaywall. Please note that after Paywall 2.0 release you should specify the Placement id - that is likely the source of the misunderstanding.
Hope it helps!