Hi there @JDhere,
Welcome to the Community!
Do you have any firewalls or security layers on your site? We typically see this error for the following reasons:
- Firewall or security layer blocking our requests or making the endpoints not reachable
- Bot Fight Mode on Cloudflare blocking Klaviyo bot. If you have Bot Fight Mode enabled, you will need to disable it for the integration to work
- Your server re-routing our requests
It might be best to start out with the security layer. What do you have set up for firewalls (ie. Apache, Cloudflare, etc)?
EDIT: Resolved in support. Custom issue.
Thanks.
Alex
Actually I am not using any firewalls. I am having the magento as a sub folder concept in the machine.
Scenario:
In my machine there are 3 magento instances so I am using a sub folder structure to access them.
DocRoot: /var/www/html/
So I access all the instance by,
- https://xx.xx.xx.xx/magento234
- https://xx.xx.xx.xx/magento234staging
- https://xx.xx.xx.xx/magento234testing
So in this order I access the instances. Now I try to integrate klaviyo, it only takes my IP, but I have not mapped any magento instances while accessing that IP. Only if the sub folder is added in the url my magento instance will be accessible. If you try to access the IP apache page will only come.
So what I need is “https://xx.xx.xx.xx/magento234/oauth/token/request” instead of “https://xx.xx.xx.xx/oauth/token/request” . So I need a method or process on doing that.
Currently klaviyo is going to this url: “https://xx.xx.xx.xx/oauth/token/request” , which won’t work in my case.
I’ve the same problem, how can I fix?
Hi @jorgeiwd!
I see that you filed a support ticket for this issue and received a response - since this is likely an account-specific issue regarding the contents of your .htaccess file, I think it would be best to follow up there as they have account-level access that we in the Community do not.
Best,
Brian
Hi @JDhere
We have the same problem here.
Were you able to solve this?
Thanks!
Hi @Peter Loop
Yes, I was able to resolve the issue by creating a Virtual Host.
You can refer this link to set it up: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-20-04
Klaviyo should have used the magento base url instead of taking the domain/ip. This is the root cause of the issue.