Suddenly started getting strange error for each network request
Answered
Dunlin posted this in #help-forum
DunlinOP
At one point, any network requests to localhost stopped working.
What I didn't do:
- the project was charged from Git
- launched from another IDE
- launched from another browser
- restarted the laptop
- walked on different branches of the Git
- changed env
- started on a different port
it starts on another laptop, but it stopped working on the working one. Any ideas?
I also got the following error
What I didn't do:
- the project was charged from Git
- launched from another IDE
- launched from another browser
- restarted the laptop
- walked on different branches of the Git
- changed env
- started on a different port
it starts on another laptop, but it stopped working on the working one. Any ideas?
I also got the following error
TypeError: Failed to construct 'Request': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point.27 Replies
Morelet’s Crocodile
Previously, the request to localhost worked?
@Dunlin At one point, any network requests to localhost stopped working.
What I didn't do:
- the project was charged from Git
- launched from another IDE
- launched from another browser
- restarted the laptop
- walked on different branches of the Git
- changed env
- started on a different port
it starts on another laptop, but it stopped working on the working one. Any ideas?
I also got the following error TypeError: Failed to construct 'Request': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point.
Morelet’s Crocodile
Could you give me more specific detail of your error?
DunlinOP
Yes, today project was worked correct. But suddenly I faced this problem
No commands I typed into terminal. And no changes at project.
On another laptop this project works okay
On another laptop this project works okay
I don’t remember what could I do. Any ideas?
@Dunlin No commands I typed into terminal. And no changes at project.
On another laptop this project works okay
Morelet’s Crocodile
I see. it looks there is problem in your pC
DunlinOP
What can be wrong?
Morelet’s Crocodile
Why don't you restart your laptop?
DunlinOP
I already did. Wasn’t able to help me
@Dunlin I already did. Wasn’t able to help me
Morelet’s Crocodile
Are you using NEXT.js?
DunlinOP
Yes
Morelet’s Crocodile
Another pc, project is working well, right?
@Dunlin No commands I typed into terminal. And no changes at project.
On another laptop this project works okay
Morelet’s Crocodile
Is it same code?
DunlinOP
Yes.
I don’t think that we should attach to specific code. Cause all network requests aren’t work
I don’t think that we should attach to specific code. Cause all network requests aren’t work
@Dunlin Yes.
I don’t think that we should attach to specific code. Cause all network requests aren’t work
Morelet’s Crocodile
Did you use nvm or else?
DunlinOP
Use nvm. But I haven’t change version
Morelet’s Crocodile
what about re-install packages?
DunlinOP
Also tried several times
Morelet’s Crocodile
Oh no
DunlinOP
do you have other ideas?
It looks really strange problem
It looks really strange problem
Morelet’s Crocodile
while reinstalling did you delete lock files?
DunlinOP
no
DunlinOP
btw I use
supabase, but I don't think that problem can be connected with thatconst getDefaultServiceCategories = cache(async ({ supabase, lng }: Params) => {
const { data, error } = await supabase
.from("service_main_categories")
.select(`*, subCategories:service_sub_categories(*)`)
.eq("service_sub_categories.is_custom", false)
.returns<IServiceMainCategory[]>();
if (error) {
throw new Error(error.message);
}
return data.map((category) => ({
...category,
name: lng === LANGUAGES.EN ? category.name : category.name_esp,
subCategories: category.subCategories.map((subCategory) => ({
...subCategory,
name: lng === LANGUAGES.EN ? subCategory.name : subCategory.name_esp,
})),
}));
});DunlinOP
It just happened on my another laptop. I've just coding locally, and now I see this problem
DunlinOP
Solved. JWT token has symbol, that brokes it
Answer
@Dunlin Solved. JWT token has symbol, that brokes it
Morelet’s Crocodile
Great.
@Dunlin Solved. JWT token has symbol, that brokes it
Morelet’s Crocodile
Would you like to accept my friend request? I think it will be helpful if we keep contact with each other.