Dynamic Route issue - getting 401
Answered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Hi, i've created a dynamic route, Im getting issue while trying to render it.
When im going to route - localhost:3000/test
getting this Error -
When im going to route - localhost:3000/test
getting this Error -
This page isn’t workingIf the problem continues, contact the site owner.
HTTP ERROR 40118 Replies
Spectacled bearOP
Anyone?
@Spectacled bear Anyone?
that's should be the issue with your api, not dynamic route
Spectacled bearOP
@Ray im not using any api these are client side pages
@Spectacled bear <@743561772069421169> im not using any api these are client side pages
I have never seen the dynamic route would return
HTTP ERROR 401Spectacled bearOP
@Ray I've attached the ss
@Spectacled bear <@743561772069421169> I've attached the ss
check your middleware
@Ray check your middleware
Spectacled bearOP
dont' have one in this project
@Spectacled bear dont' have one in this project
show the folder structure and the code on
app/[username]/page.tsx@Ray show the folder structure and the code on `app/[username]/page.tsx`
Spectacled bearOP
import React from "react";
const Page = () => {
return <div>Page</div>;
};
export default Page;@Spectacled bear structure <@743561772069421169>
can't see the route you have
@Ray can't see the route you have
Spectacled bearOP
[username]/page.tsx
i meant other route
Spectacled bearOP
login page is working fine
or try create one
src/app/users/[username]/page.tsx then go to /users/testSpectacled bearOP
@Ray thanks, it's fixed. I had rewrite in next config.
Answer