Hi, Trying autoreload, when I rebuild de project, ...
# ktor
a
Hi, Trying autoreload, when I rebuild de project, server shows how it is refreshing files but when ends refreshing never end with “Listening http://localhost:8080” and so it is not responding to request
a
What happens when you request the endpoint after the reloading?
a
Server not respond and the server logs nothing
Can’t reach localhost:8080
a
a
Sorry, I misunderstood what you were asking to me. So, after reloading, when I make a new request I see server restarting but it never reach the line “Listening http://localhost:8080
It logs “Changes in application detected”, “Watching…“, “Hikari reloads database connection”, but it doesn’t log “Listening http://localhost:8080
I did try what’s in the issue, but same happens
a
You can try deleting configuration by chunks to determine what causes the auto-reloading problem.
a
Thanks
I got it. As all plugins are re-configuring again, i found one that fails when re-configuring. Many thanks!
Is there a way to have a semaphore for that in order to stop reconfiguring this plugin again?
a
Can you share the details of your findings?
a
It is firebase-auth plugin being already initialized -> FirebaseApp.initialize(config)
a
You can configure it outside of the Ktor's module
a
I think it is better to handle from the plugin site
The thing is FirebaseApp.initialize() is handled by the plugin
I made a PR for checking if it is initialized or not before re-initializing
Thanks!