Quick Start Tutorial is not working - An error occurred The requested redirect URL is not permitted. #1217
Replies: 5 comments 1 reply
-
ı am taking exactly to same error with same process :/ any help? |
Beta Was this translation helpful? Give feedback.
-
It could be that the redirect URI doesn't match the Callback URLs configured for your app and/or it requires HTTPS given it's OAuth. |
Beta Was this translation helpful? Give feedback.
-
i posted this thread a while back to simplify the horrid tutorial. Try it out at #1208 |
Beta Was this translation helpful? Give feedback.
-
i have nev er had this problem in the past but i have a new authorized store as of 11/01/2024 and am getting the same bullshit response! so pissed. An error occurred note im not a noob at this i have 6 active stores! wtf etsy!!! |
Beta Was this translation helpful? Give feedback.
-
I strongly recommend use if the Python script provide by slider1234 has noted above. But, even with that I struggled for days with the inability to authorize certain scope combinations. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have do connect API with https://developers.etsy.com/documentation/tutorials/quickstart But, It is not working.
My server.js file below:
`// Import the express and fetch libraries
const express = require('express');
const fetch = require("node-fetch");
const hbs = require("hbs");
// Create a new express application
const app = express();
app.set("view engine", "hbs");
app.set("views",
${process.cwd()}/views
);// Send a JSON response to a default get request
app.get('/ping', async (req, res) => {
const requestOptions = {
'method': 'GET',
'headers': {
'x-api-key': 'iibu5bcmzso6pXXXXXXX'',
},
};
});
// This renders our
index.hbs
file.app.get('/', async (req, res) => {
res.render("index");
});
/**
These variables contain your API Key, the state sent
in the initial authorization request, and the client verifier compliment
to the code_challenge sent with the initial authorization request
*/
const clientID = 'iibu5bcmzso6pXXXXXXX';
const clientVerifier = 'kWjT3PdpzuldTgbRuiiVpBgRWh0p4RSDUNzb0FjfjQE';
const redirectUri = 'http://localhost:3003/oauth/redirect';
app.get("/oauth/redirect", async (req, res) => {
// The req.query object has the query params that Etsy authentication sends
// to this route. The authorization code is in the
code
paramconst authCode = req.query.code;
const tokenUrl = 'https://api.etsy.com/v3/public/oauth/token';
const requestOptions = {
method: 'POST',
body: JSON.stringify({
grant_type: 'authorization_code',
client_id: clientID,
redirect_uri: redirectUri,
code: authCode,
code_verifier: clientVerifier,
}),
headers: {
'Content-Type': 'application/json'
}
};
});
app.get("/welcome", async (req, res) => {
// We passed the access token in via the querystring
const { access_token } = req.query;
});
// Start the server on port 3003
const port = 3003;
app.listen(port, () => {
console.log(
Example app listening at http://localhost:${port}
);});`
It can be show ping screen below:
The oauth URL is:
When I click to "Authenticate with Etsy". It is show error "
Beta Was this translation helpful? Give feedback.
All reactions