Skip to content

Instantly share code, notes, and snippets.

@crucialfelix
Created July 8, 2022 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crucialfelix/cd0df2a8d38f7a083a1a12c34e762116 to your computer and use it in GitHub Desktop.
Save crucialfelix/cd0df2a8d38f7a083a1a12c34e762116 to your computer and use it in GitHub Desktop.
climatebase signup error bug report

I've signed up and I'm now on the Create a Profile page. I cannot apply to jobs or even view any climatebase pages until I complete this (because I'm signed in)

Clicking (create) Personal Profile leads me to auth_redirect:

https://climatebase.org/auth-redirect?location=/create-profile&type=user

which attempts to call:

https://api.climatebase.org/api/v1/users/create

which returns a 404 with the body:

{"error":"Error while creating internal user record. Please ensure all parameters are formatted correctly."}

(that should be a 400 response)

Here is the request that was being posted:

curl 'https://api.climatebase.org/api/v1/users/create' \
  -H 'authority: api.climatebase.org' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9,de-DE;q=0.8,de;q=0.7,fr;q=0.6' \
  -H 'authorization: Bearer etc' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'dnt: 1' \
  -H 'origin: https://climatebase.org' \
  -H 'pragma: no-cache' \
  -H 'referer: https://climatebase.org/' \
  -H 'sec-ch-ua: ".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"' \
  -H 'sec-ch-ua-mobile: ?1' \
  -H 'sec-ch-ua-platform: "Android"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-site' \
  -H 'user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36' \
  --data-raw '{"email":"my-email@gmail.com","first_name":"My Name","last_name":" ","auth0_id":"xyz1234","auth0_provider":"linkedin"}' \
  --compressed

I'm not actually on android; I'm just using developer tools.

@crucialfelix
Copy link
Author

The above is with all ad blockers disabled.

But maybe it's because I signed up using linkedin auth, and trackers were being blocked at that time. This may have led to some inconsistent internal state in your database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment