דרושים פרילנסרים ל React Native Async Axios not responding
פרויקט מס' 165366
Job Statistics
9 Bids |
תקציב
5,000 ₪ - 10,000 ₪
|
תוקף הפרויקט
סגור להצעות נוספות
|
טווח הצעות
55
₪
-
250
₪
לשעת עבודה
|
הצעה ממוצעת
156
₪
לשעת עבודה
|
Job Info And Actions
תאריך פרסום:
05:38, 30 מרץ, 2021
הצעות תתקבלנה עד:
07:18, 7 אפריל, 2021
דרושים פרילנסרים ל React Native Async Axios not responding
רסטיגו הינו בית תוכנה למסעדות
אנו מפתחים אפליקציית נוכחות מבוססת GPS ב react native
אנו צריכים עזרה עם הסיטואציה הבאה :
I've got JWT logging and I'm trying to get the user by token
export const authTokenLogin = async (token) => {
let extra_url = `jwttokenlogin`;
try {
console.log("Break Point 1");
const response_user = await Axios.post(BASE_URL + extra_url, null, {
params: {
token,
},
});
console.log(response_user.data);
return response_user.data;
} catch (e) {
console.log("Break Point 2");
console.log(e.response.status);
return null;
}
};
all worked fine until few days ago from reason yet to be discovered
now it gets to "Break Point 1" and stock there, not reaching "Break Point 2" or "Break Point 3" just stock and heat up my phone
I've manage to get the token from
export const authLogin = async (email, password, rememberMe) => {
var formData = new FormData();
formData.append("email", email);
formData.append("password", password);
formData.append("remember_me", rememberMe);
try {
return await Axios.post(BASE_URL + "jwtlogin", formData).then((res) => {
return res.data.data;
});
} catch (e) {
return e.response.status;
}
};
So the server is alive and responding
looking for solution , Thanks
אנו מפתחים אפליקציית נוכחות מבוססת GPS ב react native
אנו צריכים עזרה עם הסיטואציה הבאה :
I've got JWT logging and I'm trying to get the user by token
export const authTokenLogin = async (token) => {
let extra_url = `jwttokenlogin`;
try {
console.log("Break Point 1");
const response_user = await Axios.post(BASE_URL + extra_url, null, {
params: {
token,
},
});
console.log(response_user.data);
return response_user.data;
} catch (e) {
console.log("Break Point 2");
console.log(e.response.status);
return null;
}
};
all worked fine until few days ago from reason yet to be discovered
now it gets to "Break Point 1" and stock there, not reaching "Break Point 2" or "Break Point 3" just stock and heat up my phone
I've manage to get the token from
export const authLogin = async (email, password, rememberMe) => {
var formData = new FormData();
formData.append("email", email);
formData.append("password", password);
formData.append("remember_me", rememberMe);
try {
return await Axios.post(BASE_URL + "jwtlogin", formData).then((res) => {
return res.data.data;
});
} catch (e) {
return e.response.status;
}
};
So the server is alive and responding
looking for solution , Thanks
תחומי הפרויקט
קבצי הפרויקט
אנא היכנס לאתר לקבלת גישה לקבצי הפרויקט
הלקוח
אנא
היכנס לאתר
לקבלת גישה ללקוח
עדכונים
אנא היכנס לאתר לקבלת גישה לעדכונים בפרויקט
Private Bid
2 פרויקטים
|
|
Private Bid
0 פרויקטים
|
|
Private Bid
16 פרויקטים
|
|
Private Bid
1 פרויקטים
|
|
Private Bid
15 פרויקטים
|
|