Skip to main content
removed thanks and improved layout
Source Link
rene
  • 2.8k
  • 2
  • 17
  • 35

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 Bad Request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). 

I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. 

What am I doing wrong? Thanks.

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 Bad Request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. What am I doing wrong? Thanks.

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 Bad Request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). 

I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. 

What am I doing wrong?

edited body; edited tags
Source Link
Glorfindel
  • 6.9k
  • 3
  • 22
  • 49

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 bad requestBad Request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. What am I doing wrong? Thanks.

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 bad request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. What am I doing wrong? Thanks.

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 Bad Request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. What am I doing wrong? Thanks.

Source Link
Penguin
  • 113
  • 8

Why am I getting a 400 Bad Request error with this code?

I'm using this code (in an async function):

let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&filter=!)scMKI1zXS19EMMxEj7e");
console.log(about);

but I'm getting a 400 bad request error. I have gotten access, I have accepted the app and then recorded the data.access_token, which is what token is (I have checked that the token looks right, it is). I used this API help page to generate it. I've spent a bunch of time trying to figure this out, but I can't even find any examples. What am I doing wrong? Thanks.