Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

javascript - Why is my groupme link not redirecting correctly?

So I am making a website that returns a groupme link via a database depending on the inputs that you measure. However, groupme, despite my program directing the user to the correct link to join a group, just displays an error that says "sorry, but this group is no longer joinable". Below is a snippet code (again, fully functional):

var userDataStr = JSON.stringify(userData); //turns data into stringvar userDataSplit = userDataStr.split(""");
var userData3 = userDataSplit[9].split("/");
var userDataFinal = userDataSplit[9].link("https://web.groupme.com/join_group/" + userData3[2] + "/" + userData3[3]);
    document.getElementById("link").innerHTML = userDataFinal;
    window.location = "https://web.groupme.com/join_group/" + userData3[2] + "/" + userData3[3];

The javascript compiler also displays these errors (sorry for so much, I just copied and pasted):

GET https://v2.groupme.com/groups/59833834/preview/u3y3saxx 404 (Not Found)
(anonymous) @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
t @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
$eval @ libs.js?version=1611337893:310
$digest @ libs.js?version=1611337893:310
$apply @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
v @ libs.js?version=1611337893:310
d.onload @ libs.js?version=1611337893:310
load (async)
(anonymous) @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
t @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
$eval @ libs.js?version=1611337893:310
$digest @ libs.js?version=1611337893:310
$apply @ libs.js?version=1611337893:310
(anonymous) @ libs.js?version=1611337893:310
invoke @ libs.js?version=1611337893:310
t @ libs.js?version=1611337893:310
ue @ libs.js?version=1611337893:310
(anonymous) @ application.js?version=1611337893:4
c @ libs.js?version=1611337893:36
fireWith @ libs.js?version=1611337893:36
ready @ libs.js?version=1611337893:36
C @ libs.js?version=1611337893:36
u3y3saxx:1 Access to fetch at 'https://www.facebook.com/x/oauth/status?client_id=127221877343651&input_token&origin=2&redirect_uri=https%3A%2F%2Fweb.groupme.com%2Fjoin_group%2F59833834%2Fu3y3saxx&sdk=joey&wants_cookie_data=false' from origin 'https://web.groupme.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
libs.js?version=1611337893:304 GET https://www.facebook.com/x/oauth/status?client_id=127221877343651&input_token&origin=2&redirect_uri=https%3A%2F%2Fweb.groupme.com%2Fjoin_group%2F59833834%2Fu3y3saxx&sdk=joey&wants_cookie_data=false net::ERR_FAILED
(anonymous) @ libs.js?version=1611337893:304
e @ libs.js?version=1611337893:304
h @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:117
d @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:117
D @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:117
f @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:117
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:140
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:106
c @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:45
g @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:106
h @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:155
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:76
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:59
window.fbAsyncInit @ u3y3saxx:112
a.__wrapper.a.__wrapper @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:59
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:155
e @ libs.js?version=1611337893:304
setTimeout (async)
(anonymous) @ libs.js?version=1611337893:304
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:155
require @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:24
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:156
require @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:24
__d @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:24
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:156
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:186
(anonymous) @ sdk.js?hash=4735437f1e9f683f9ea9d5b2967e02d1:186
libs.js?version=1611337893:304 Error retrieving login status, fetch cancelled.

Does anyone know how I may fix this? Any help or ideas is greatly appreciated! Thank you so much in advance!

question from:https://stackoverflow.com/questions/65915207/why-is-my-groupme-link-not-redirecting-correctly

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...