Quick Start Tutorial is not working - An error occurred The requested redirect URL is not permitted. #1217
Replies: 7 comments 1 reply
|
ı am taking exactly to same error with same process :/ any help? |
|
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. |
|
i posted this thread a while back to simplify the horrid tutorial. Try it out at #1208 |
|
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!!! |
|
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. |
|
Still getting this issue. Following the quick start exactly, getting the error occurred issue. Triple checked that the callback url was correct, but still nothing. Not sure why the official docs dont work. This API V3 transition has been really really rocky for me |
|
If you also need Ai assistance specific to your codebase, Grok does very well with the Etsy API. It will walk you through an updated quickstart tutorial based on your tech stack. |
Uh oh!
There was an error while loading. Please reload this page.
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.hbsfile.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
codeparamconst 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 "
All reactions