microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
860 stars 366 forks source link

Bot Framework Composer server start is looping (unexpected end of JSON) #9668

Closed neis-lotte closed 4 months ago

neis-lotte commented 8 months ago

Describe the bug

You can see "Server starting" screen after that nothing happens. Opening the Bot Framework Composer with terminal only shows the Syntaxerror : "UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input".

Version

Browser

OS

To Reproduce

Steps to reproduce the behavior:

  1. Download Bot Framework Composer nightly build
  2. Start Bot Framework Composer

(there are no more information to reproduce)

Expected behavior

Bot Framework Composer should show all Bots.

Screenshots

image

image

Additional context

(node:11276) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at migrateStore (C:\ProgramData\Bot Framework Composer\resources\app.asar\node_modules\@bfc\server\build\store\store.js:17:31)
    at Object.<anonymous> (C:\ProgramData\Bot Framework Composer\resources\app.asar\node_modules\@bfc\server\build\store\store.js:22:1)
    at Module._compile (internal/modules/cjs/loader.js:1130:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
    at Module.load (internal/modules/cjs/loader.js:987:32)
    at Module._load (internal/modules/cjs/loader.js:828:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:1011:19)
    at require (internal/modules/cjs/helpers.js:88:18)
(Use `Bot Framework Composer --trace-warnings ...` to show where the warning was created)
(node:11276) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11276) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[16124:1109/113309.015:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is disabled
dmvtech commented 5 months ago

@neis-lotte Is this still happening for you? I am not able to reproduce the issue.

neis-lotte commented 4 months ago

Yes the issue is still the same. And no matter how often i reinstall the program or which version i download it still won't open.

Am Do., 25. Jan. 2024 um 01:21 Uhr schrieb Dana V @.***

:

@neis-lotte https://github.com/neis-lotte Is this still happening for you? I am not able to reproduce the issue.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/BotFramework-Composer/issues/9668#issuecomment-1909140587, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBCC3ENJEFA3XNEX6PI6OTLYQGQQBAVCNFSM6AAAAAA7EL3XYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGE2DANJYG4 . You are receiving this because you were mentioned.Message ID: @.***>

OEvgeny commented 4 months ago

@neis-lotte try moving the file located in C:\Users\%USER%\AppData\Roaming\BotFrameworkComposer\data.json where %USER% is your windows computer username, somewhere else and see if it fixes the issue.

Looks like the file got corrupted which prevents Composer from start

neis-lotte commented 4 months ago

So my Pc got a shotdown while running the program, after that it did not work. Now after resetting my PC everything works fine. But Thank You, Next Time I'll try.