Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

having all sites working but one... returning a 400 error #17037

Closed
cantoute opened this issue Jan 2, 2021 · 5 comments
Closed

having all sites working but one... returning a 400 error #17037

cantoute opened this issue Jan 2, 2021 · 5 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@cantoute
Copy link

cantoute commented Jan 2, 2021

Something strange, all my sites have similar settings and seam to work fine but one.

$ curl 'https://stats.cantoute.com/matomo.php?action_name=Fabricant%20Tipi%20et%20Yourtes%20-%20Dessine%20moi%20une%20Yourte&idsite=8&rec=1&r=749736&h=16&m=50&s=57&url=https%3A%2F%2Fdessinemoiuneyourte.com%2Flang%2Ffr%2Fcatalogue&urlref=https%3A%2F%2Fdessinemoiuneyourte.com%2Flang%2Ffr%2Faccueil&_id=b8614f0293182858&_idn=0&_refts=0&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1280x800&pv_id=rZVuvn&pf_net=0&pf_srv=1137&pf_tfr=243&pf_dm1=968' \
  -X 'POST' \
  -H 'authority: stats.cantoute.com' \
  -H 'content-length: 0' \
  -H 'sec-ch-ua: "Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"' \
  -H 'dnt: 1' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36' \
  -H 'content-type: application/x-www-form-urlencoded; charset=utf-8' \
  -H 'accept: */*' \
  -H 'origin: https://dessinemoiuneyourte.com' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-fetch-mode: no-cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://dessinemoiuneyourte.com/' \
  -H 'accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,es;q=0.6,pt;q=0.5' \
  --compressed
HTTP/1.1 400 Bad Request
Server: nginx
Date: Sat, 02 Jan 2021 21:00:05 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Origin
Tk: N
Access-Control-Allow-Origin: https://dessinemoiuneyourte.com
Access-Control-Allow-Credentials: true

This resource is part of Matomo. Keep full control of your data with the leading free and open source <a href='https://matomo.org' target='_blank' rel='noopener noreferrer nofollow'>web analytics & conversion optimisation platform</a>.<br>
This file is the endpoint for the Matomo tracking API. If you want to access the Matomo UI or use the Reporting API, please use <a href='index.php'>index.php</a> instead.
@tsteur
Copy link
Member

tsteur commented Jan 2, 2021

@cantoute have you maybe configured the site to only allow requests from specific domains?

When you edit a site or measurable then there's a checkbox like this:

image

@tsteur
Copy link
Member

tsteur commented Jan 2, 2021

Or maybe there are some exclusions configured?

@cantoute
Copy link
Author

cantoute commented Jan 3, 2021

Not that I know off...
I had added 7 sites after fresh install.
That last site was added after the last update (4.1.0)
The other thing I could think of is that the domain name is longer than any other I've got dessinemoiuneyourte.com

I've tried removing site and recreate... nothing changed

@cantoute
Copy link
Author

cantoute commented Jan 3, 2021

Thanks for you help...

Turned out that deleting it and recreating it finally worked !!

Sorry for the noise.

Have a nice day

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jan 4, 2021
@tsteur
Copy link
Member

tsteur commented Jan 4, 2021

Great, glad it works now @cantoute

@tsteur tsteur closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants