Cannot set company privacy policy / terms of service

Hello !

I’m trying to set my company privacy policy / terms of service in the Forge Developer Console, but got this error when I’m saving changes:

According to the error message, I wrote a basic program to test requests from node-fetch library:

image

And I’m able to access the website:

image

Any idea why it’s doesn’t work with my company website, but work well with others ? (e.g. https://www.atlassian.com/ doesn’t trigger the error).

If someone from the Atlassian Forge team want to check, my app ID is : 3bd5d152-ce74-4388-96fd-2606bf679cd3

Thanks in advance !

2 Likes

Hey @clement_garin,

This URL returns a permanent redirect status code.

It’s likely that Wordpress corrects the url format to have a trailing /

If you use https://elements-apps.com/terms/ instead of https://elements-apps.com/terms I expect that will work.

I’ll pass on a note to the correct team to look at following redirects when doing this validation.

curl -I https://elements-apps.com/terms
HTTP/1.1 301 Moved Permanently
Date: Thu, 26 Aug 2021 22:36:10 GMT
Server: Apache/2.4.29 (Ubuntu)
X-Redirect-By: WordPress
Location: https://elements-apps.com/terms/
Content-Type: text/html; charset=UTF-8
2 Likes

Good catch ! You right, adding the missing ‘/’ return a 200:

So I edited my app distribution settings with https://elements-apps.com/terms/ but I still have the same error… I’ve also tested with a fresh created app - same

I will see with people managing our website if they have any hints about this

Edit:

I’ve looked the Apache log on our side, here the results accessing https://elements-apps.com/terms/:

Using a web browser:

176.129.173.189 - - [27/Aug/2021:09:55:29 +0200] “GET /terms/ HTTP/1.1” 200 70662 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0”

Using Dev console form:

18.246.31.226 - - [27/Aug/2021:09:54:18 +0200] “GET /terms/ HTTP/1.1” 301 4124 “-” “node-fetch”

So I would say the problem is on our side, since the website doesn’t return the same HTTP code regarding, I think, the user-agent

2 Likes