Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Problem in Log in, 'Request failed with status code 404'


I have been using Metronic 8 Demo4 React version. When I hit npm start, it opens up the dashboard, but today this log in page has come up and when I entered the pre-given credentials, I'm unable to log in. The error reads "POST https://preview.keenthemes.com/metronic8/laravel/api/login 404 (Not Found). Request failed with status code 404". I don't understand as it was working fine till yesterday.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


We have fixed the demo API. Could you please retry if it's working?

Thanks



Yes, it's working now. Thanks.



Hi,

Glad to hear that. Please don't hesitate to reach out if you need anything more from us.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi,

Sorry for the inconvenience. We are aware of the issue you are facing due to a problem with the demo API.

Please note that the React version should still work locally on your machine without relying on the demo API.

We apologize for any inconvenience caused, and we are working on resolving the demo API issue as soon as possible. If you have any further questions or need assistance with other aspects of Metronic, please let us know.

Thanks



Oh, but I'm still not able to log in with the demo credentials. Could you tell me a way to directly land upon the dashboard without going through the login page?


const AppRoutes = () => {
const { currentUser } = useAuth();
return (<BrowserRouter basename={PUBLIC_URL}>
<Routes>
<Route element={<App />}>
<Route path="error/*" element={<ErrorsPage />}/>
<Route path="logout" element={<Logout />}/>
{currentUser ? (<>
<Route path="/*" element={<PrivateRoutes />}/>
<Route index element={<Navigate to="/dashboard"/>}/>
</>) : (<>
<Route path="auth/*" element={<AuthPage />}/>
<Route path="*" element={<Navigate to="/auth"/>}/>
</>)}
</Route>
</Routes>
</BrowserRouter>);
};


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(