Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Fresh new project - admin login not working #8614

Open
duc-gp opened this issue Jun 6, 2024 · 3 comments
Open

馃悰 Bug Report: Fresh new project - admin login not working #8614

duc-gp opened this issue Jun 6, 2024 · 3 comments
Labels
type: bug Something isn't working

Comments

@duc-gp
Copy link

duc-gp commented Jun 6, 2024

What happened?

I just created a new service. Amplification created a service-admin and service-server folder. I started both and tried to login through admin react app

What you expected to happen

I used
username: admin
password: admin

and expect that I am loggedin. but I get an error

How to reproduce

  • let amplification generate a new project
  • start server and admin according to readme
  • open localhost:3000 and use admin:admin and click login

I get this error:

:3001/#/login:1 Error while trying to use the following icon from the Manifest: http://localhost:3001/logo192.png (Download error or resource isn't a valid image)
ra-auth-jwt.ts:21 
        
        
       POST http://localhost:3000/graphql net::ERR_CONNECTION_REFUSED
(anonymous) @ createHttpLink.ts:156
Subscription @ module.js:190
subscribe @ module.js:264
(anonymous) @ index.ts:22
Promise.then (async)
(anonymous) @ index.ts:17
Subscription @ module.js:190
subscribe @ module.js:264
complete @ Concast.ts:213
Concast.start @ Concast.ts:104
Concast @ Concast.ts:84
QueryManager.getObservableFromLink @ QueryManager.ts:1001
(anonymous) @ QueryManager.ts:244
(anonymous) @ QueryManager.ts:232
step @ tslib.es6.mjs:147
(anonymous) @ tslib.es6.mjs:128
(anonymous) @ tslib.es6.mjs:121
__awaiter @ tslib.es6.mjs:117
QueryManager.mutate @ QueryManager.ts:177
ApolloClient.mutate @ ApolloClient.ts:354
login @ ra-auth-jwt.ts:21
(anonymous) @ useLogin.js:39
submit @ Login.tsx:19
callCallback @ react-dom.development.js:188
invokeGuardedCallbackDev @ react-dom.development.js:237
invokeGuardedCallback @ react-dom.development.js:292
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:306
executeDispatch @ react-dom.development.js:389
executeDispatchesInOrder @ react-dom.development.js:414
executeDispatchesAndRelease @ react-dom.development.js:3278
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:3287
forEachAccumulated @ react-dom.development.js:3259
runEventsInBatch @ react-dom.development.js:3304
runExtractedPluginEventsInBatch @ react-dom.development.js:3514
handleTopLevel @ react-dom.development.js:3558
batchedEventUpdates$1 @ react-dom.development.js:21871
batchedEventUpdates @ react-dom.development.js:795
dispatchEventForLegacyPluginEventSystem @ react-dom.development.js:3568
attemptToDispatchEvent @ react-dom.development.js:4267
dispatchEvent @ react-dom.development.js:4189
unstable_runWithPriority @ scheduler.development.js:653
runWithPriority$1 @ react-dom.development.js:11039
discreteUpdates$1 @ react-dom.development.js:21887
discreteUpdates @ react-dom.development.js:806
dispatchDiscreteEvent @ react-dom.development.js:4168
Show 42 more frames
Show less
react-dom.development.js:88 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
    in div (created by ForwardRef(Paper))
    in ForwardRef(Paper) (created by WithStyles(ForwardRef(Paper)))
    in WithStyles(ForwardRef(Paper)) (created by ForwardRef(SnackbarContent))
    in ForwardRef(SnackbarContent) (created by WithStyles(ForwardRef(SnackbarContent)))
    in WithStyles(ForwardRef(SnackbarContent)) (created by Transition)
    in Transition (created by ForwardRef(Grow))
    in ForwardRef(Grow) (created by ForwardRef(Snackbar))
    in div (created by ClickAwayListener)
    in ClickAwayListener (created by ForwardRef(Snackbar))
    in ForwardRef(Snackbar) (created by WithStyles(ForwardRef(Snackbar)))
    in WithStyles(ForwardRef(Snackbar)) (created by Notification)
    in Notification (at Login.tsx:103)
    in div (at Login.tsx:27)
    in div (at Login.tsx:26)
    in ThemeProvider (at Login.tsx:25)
    in Login (created by Context.Consumer)
    in Route (created by CoreAdminUI)
    in Switch (created by CoreAdminUI)
    in CoreAdminUI (created by AdminUI)
    in AdminUI (created by Admin)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by Connect(ConnectedRouterWithContext))
    in Connect(ConnectedRouterWithContext) (created by CoreAdminContext)
    in TranslationProvider (created by CoreAdminContext)
    in Provider (created by CoreAdminContext)
    in CoreAdminContext (created by AdminContext)
    in AdminContext (created by Admin)
    in Admin (at App.tsx:42)
    in div (at App.tsx:38)
    in App (at src/index.tsx:10)
    in StrictMode (at src/index.tsx:9)

Amplication version

2.0.5

Environment

No response

Are you willing to submit PR?

No response

@duc-gp duc-gp added the type: bug Something isn't working label Jun 6, 2024
@alpha-ai12
Copy link

alpha-ai12 commented Jun 7, 2024

Hi @duc-gp , I can work on this. Can you please assign it to me?

@duc-gp
Copy link
Author

duc-gp commented Jun 8, 2024

Hi @duc-gp , I can work on this. Can you please assign it to me?

Hi, what do you mean with assign? I cannot assign this it seems?

@alpha-ai12
Copy link

cool, i start working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants