Open robert-dm opened 8 months ago
After last Pull Request, a Mentee cannot apply, this seems only happening in Safari
Tested in dev, getting error in header. info below. in chrome works fine, but safari stopped working.
Console
Network
{ "message": "This user is already registered", "result": null, "success": false }
Network.headers
3 9 88 B 1.05 KB 0 Summary URL: https://mentee-dev.herokuapp.com/api/application/new Status: 422 UNPROCESSABLE ENTITY Source: Network Address: 34.201.81.34:443 Initiator: xhr.js:258 Request POST /api/application/new HTTP/1.1 Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate, br Accept-Language: en-GB,en-US;q=0.9,en;q=0.8 Connection: keep-alive Content-Length: 561 Content-Type: application/json Cookie: _ga_HSJ2934X33=GS1.1.1707572601.5.1.1707573116.0.0.0; _ga=GA1.1.277300148.1707363500 Host: mentee-dev.herokuapp.com Origin: https://mentee-dev.herokuapp.com Referer: https://mentee-dev.herokuapp.com/application-form Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15 Response HTTP/1.1 422 UNPROCESSABLE ENTITY Access-Control-Allow-Origin: https://mentee-dev.herokuapp.com Connection: keep-alive Content-Length: 76 Content-Type: application/json Date: Sat, 10 Feb 2024 13:57:37 GMT Nel: {"report_to":"heroku-nel","max_age":3600,"success_fraction":0.005,"failure_fraction":0.05,"response_headers":["Via"]} Report-To: {"group":"heroku-nel","max_age":3600,"endpoints":[{"url":"https://nel.heroku.com/reports?ts=1707573457&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&s=Hb7iuGwH%2F1RxTADh1xgIq5q%2BTlC8YU6V0mDay61SJxc%3D"}]} Reporting-Endpoints: heroku-nel=https://nel.heroku.com/reports?ts=1707573457&sid=e11707d5-02a7-43ef-b45e-2cf4d2036f7d&s=Hb7iuGwH%2F1RxTADh1xgIq5q%2BTlC8YU6V0mDay61SJxc%3D Server: gunicorn Vary: Origin Via: 1.1 vegur Request Data MIME Type: application/json Request Data:
Nothing clear in logs
Feb 10 05:56:23 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972764468592646&selected=1692972764468592646) [heroku/router](https://my.papertrailapp.com/events?q=program%3Aheroku%2Frouter&focus=1692972764468592646&selected=1692972764468592646) at=info method=POST path="/api/application/new" host=mentee-dev.herokuapp.com request_id=[3e730b4c-ce30-4f93-9c14-7d23caf077af](https://my.papertrailapp.com/systems/mentee-dev/events?q=%223e730b4c-ce30-4f93-9c14-7d23caf077af%22&focus=1692972764468592646&selected=1692972764468592646) fwd="[181.165.121.110](https://my.papertrailapp.com/systems/mentee-dev/events?q=%22181.165.121.110%22&focus=1692972764468592646&selected=1692972764468592646)" dyno=web.1 connect=0ms service=5ms status=422 bytes=316 protocol=https Feb 10 05:56:23 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972764875497520&selected=1692972764875497520) [app/web.1](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.1&focus=1692972764875497520&selected=1692972764875497520) [2024-02-10 13:56:23,216] DEBUG in manage: POST /api/application/new 422 b'{"message":"This user is already registered","result":null,"success":false}\n' Feb 10 05:56:23 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972764875497522&selected=1692972764875497522) [app/web.1](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.1&focus=1692972764875497522&selected=1692972764875497522) [2024-02-10 13:56:23 +0000] [8] [DEBUG] POST /api/application/new 422 b'{"message":"This user is already registered","result":null,"success":false}\n' Feb 10 05:56:23 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972764875497526&selected=1692972764875497526) [app/web.1](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.1&focus=1692972764875497526&selected=1692972764875497526) 2024-02-10 13:56:23,216 [10.1.63.104](https://my.papertrailapp.com/systems/mentee-dev/events?q=%2210.1.63.104%22&focus=1692972764875497526&selected=1692972764875497526): requested https://mentee-dev.herokuapp.com/api/application/new: DEBUG in [manage: 15]: POST /api/application/new 422 b'{"message":"This user is already registered","result":null,"success":false}\n' Feb 10 05:56:23 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972764875497529&selected=1692972764875497529) [app/web.1](https://my.papertrailapp.com/events?q=program%3Aapp%2Fweb.1&focus=1692972764875497529&selected=1692972764875497529) [10.1.63.104](https://my.papertrailapp.com/systems/mentee-dev/events?q=%2210.1.63.104%22&focus=1692972764875497529&selected=1692972764875497529) - - [10/Feb/2024:13:56:23 +0000] "POST /api/application/new HTTP/1.1" 422 76 "https://mentee-dev.herokuapp.com/application-form" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15" Feb 10 05:56:28 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972786509611009&selected=1692972786509611009) [heroku/web.1](https://my.papertrailapp.com/events?q=program%3Aheroku%2Fweb.1&focus=1692972786509611009&selected=1692972786509611009) source=web.1 dyno=heroku.199150821.[8906a0ab-5dbc-450f-9c70-2e065b507834](https://my.papertrailapp.com/systems/mentee-dev/events?q=%228906a0ab-5dbc-450f-9c70-2e065b507834%22&focus=1692972786509611009&selected=1692972786509611009) sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00 Feb 10 05:56:28 [mentee-dev](https://my.papertrailapp.com/systems/mentee-dev/events?focus=1692972786509611010&selected=1692972786509611010) [heroku/web.1](https://my.papertrailapp.com/events?q=program%3Aheroku%2Fweb.1&focus=1692972786509611010&selected=1692972786509611010) source=web.1 dyno=heroku.199150821.[8906a0ab-5dbc-450f-9c70-2e065b507834](https://my.papertrailapp.com/systems/mentee-dev/events?q=%228906a0ab-5dbc-450f-9c70-2e065b507834%22&focus=1692972786509611010&selected=1692972786509611010) sample#memory_total=185.62MB sample#memory_rss=161.95MB sample#memory_cache=23.67MB sample#memory_swap=0.00MB sample#memory_pgpgin=200pages sample#memory_pgpgout=0pages sample#memory_quota=512.00MB
Update, besides the error user gest, the user seems to be created as Admin can see it
But no email is sent to the users.
After last Pull Request, a Mentee cannot apply, this seems only happening in Safari
Tested in dev, getting error in header. info below. in chrome works fine, but safari stopped working.
Console
Network
Network.headers
Nothing clear in logs