Request edit failed with message: invalid json response body at http://localhost:8081/api/v1/edit?modeluri=superbrewer3000.coffee reason: Unexpected end of JSON input Running the latest coffee editor #168
-
Hi, Steps to reproducedocker build -t "coffee-editor:latest" . I also get the same errors when building locally with commit hash c75bf3aca1e17936484f75bbc328ab6ad6c904b5 and when trying the online demo When I change the name of the SuperBrewer3000 in the coffee file I get the errors listed below: Browser: Server logs from starting the server
```
user@pc:~/GIT/coffee-editor$ docker run -it -p 0.0.0.0:3000:3000 coffee-editor:latest yarn start
yarn run v1.22.19
$ export WF_CONFIG_LSP=localhost:5017 && theia start --WORKFLOW_NOTATION_LSP=5008 --hostname=0.0.0.0 --port=3000 --root-dir=../../backend/examples/SuperBrewer3000 --plugins=local-dir:./plugins
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///home/theia/.theia'
root WARN Failed to resolve module: filenamify
root WARN Backend WebviewBackendSecurityWarnings.initialize is slow, took: 101.4 ms
root WARN Backend FileDownloadEndpoint.configure is slow, took: 101.4 ms
root WARN Backend MetricsBackendApplicationContribution.onStart is slow, took: 100.9 ms
root INFO [WorkflowDSL] Spawn Server Process from /coffee-editor/web/coffee-server/server/lsp/x86_64/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
root WARN Backend WorkflowAnalysisServer.initialize is slow, took: 58.5 ms
root INFO Theia app listening on http://0.0.0.0:3000.
root WARN The local plugin referenced by local-dir:/home/theia/.theia/plugins does not exist.
root WARN The local plugin referenced by local-dir:/home/theia/.theia/extensions does not exist.
root INFO [coffee-workflow-analyzer-editor-0.7.0.vsix]: trying to decompress into "/tmp/vscode-unpacked/coffee-workflow-analyzer-editor-0.7.0.vsix"...
root INFO ModelServerBackendContribution: Starting modelserver from jar
root INFO [coffee-workflow-analyzer-editor-0.7.0.vsix]: decompressed
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/cdt-gdb-vscode
root INFO Resolved "cdt-gdb-vscode" to a VS Code extension "[email protected]" with engines: { vscode: '^1.26.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/vscode-unpacked/coffee-workflow-analyzer-editor-0.7.0.vsix
root INFO Resolved "coffee-workflow-analyzer-editor-0.7.0.vsix" to a VS Code extension "[email protected]" with engines: { vscode: '^1.43.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/java-debug
root INFO Resolved "java-debug" to a VS Code extension "[email protected]" with engines: { vscode: '^1.32.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/java-lsp
root INFO Resolved "java-lsp" to a VS Code extension "[email protected]" with engines: { vscode: '^1.36.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/twxs.cmake
root INFO Resolved "twxs.cmake" to a VS Code extension "[email protected]" with engines: { vscode: '^1.10.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/vscode-builtin-cpp
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "[email protected]" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/vscode-builtin-java
root INFO Resolved "vscode-builtin-java" to a VS Code extension "[email protected]" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/vscode-clangd
root INFO Resolved "vscode-clangd" to a VS Code extension "[email protected]" with engines: { vscode: '^1.41.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /coffee-editor/web/browser-app/plugins/vscode-cmake
root INFO Resolved "vscode-cmake" to a VS Code extension "[email protected]" with engines: { vscode: '^1.30.0' }
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/cdt-gdb-vscode/extension/out/extension"
root INFO Deploying backend plugin "[email protected]" from "/tmp/vscode-unpacked/coffee-workflow-analyzer-editor-0.7.0.vsix/extension/out/extension.js"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/java-debug/extension/dist/extension"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/java-lsp/extension/dist/extension"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/twxs.cmake/extension/out/extension"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/vscode-builtin-cpp/extension"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/vscode-builtin-java/extension"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/vscode-clangd/extension/out/src/extension"
root INFO Deploying backend plugin "[email protected]" from "/coffee-editor/web/browser-app/plugins/vscode-cmake/extension/dist/main"
root INFO Deploy plugins list took: 1184.9 ms
root INFO Using Git [2.17.1] from the PATH. (/usr/bin/git)
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][ms-vscode.cmake-tools]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][llvm-vs-code-extensions.vscode-clangd]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][vscode.java]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][vscode.cpp]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][twxs.cmake]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][redhat.java]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][vscjava.vscode-java-debug]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][eclipse-emfcloud.coffee-workflow-analyzer-editor]: Disconnected.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][eclipse-cdt.cdt-gdb-vscode]: Disconnected.
root ERROR [JsonrpcGLSPClient] Connection to server is erroring. Shutting down server. [ {} ]
root ERROR [JsonrpcGLSPClient] Connection to server got closed. Server will not be restarted. []
root ERROR [object Object]
root INFO Checking whether '--no-optional-locks' can be used with the current Git executable. Minimum required version is '2.15.0'.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb] Waiting for backend deployment took: 304.0 ms [Finished 487.788 s after frontend start]
root INFO '--no-optional-locks' is a valid Git option for the current Git version: '2.17.1'.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb] Sync of 0 plugins took: 0.0 ms [Finished 487.789 s after frontend start]
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb] Load contributions of 0 plugins took: 0.0 ms [Finished 487.789 s after frontend start]
root INFO [hosted-plugin: 156] PLUGIN_HOST(156) starting instance
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] Debugger contribution has been registered: gdb
root INFO [hosted-plugin: 156] Debugger contribution has been registered: gdbtarget
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] Debugger contribution has been registered: java
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): initializing([email protected] with /coffee-editor/web/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): PluginManagerExtImpl/loadPlugin(/tmp/vscode-unpacked/coffee-workflow-analyzer-editor-0.7.0.vsix/extension/out/extension.js)
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][eclipse-cdt.cdt-gdb-vscode]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][eclipse-emfcloud.coffee-workflow-analyzer-editor]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][vscjava.vscode-java-debug]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][redhat.java]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][twxs.cmake]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][vscode.cpp]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][vscode.java]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][llvm-vs-code-extensions.vscode-clangd]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb][ms-vscode.cmake-tools]: Started plugin.
root INFO [84deffa9-9389-4fb7-81e1-4ff5c9147fbb] Start of 9 plugins took: 916.0 ms [Finished 488.774 s after frontend start]
root INFO [hosted-plugin: 156] PLUGIN_HOST(156): PluginManagerExtImpl/loadPlugin(/coffee-editor/web/browser-app/plugins/java-lsp/extension/dist/extension)
root INFO [hosted-plugin: 156] {
message: 'Starting Java server with: /usr/lib/jvm/java-11-openjdk-amd64/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -jar /coffee-editor/web/browser-app/plugins/java-lsp/extension/server/plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar -configuration /coffee-editor/web/browser-app/plugins/java-lsp/extension/server/config_linux -data /home/theia/.theia/workspace-storage/cf6a410dfad3462963c5e9baadb4d188/redhat.java/jdt_ws',
level: 'info',
timestamp: '2022-08-02 15:53:23.365'
}
root INFO WorkflowGLSPServerContribution: 1 [main] INFO org.eclipse.glsp.server.launch.SocketGLSPServerLauncher - The GLSP server is ready to accept new client requests on port: 5008
root INFO WorkflowGLSPServerContribution: [GLSP-Server]:Startup completed root ERROR ModelServerBackendContribution: [main] INFO io.javalin.Javalin -
root ERROR ModelServerBackendContribution: root ERROR ModelServerBackendContribution: 2022-08-02 15:53:26.020:INFO::main: Logging initialized @6137ms to org.eclipse.jetty.util.log.StdErrLog root ERROR ModelServerBackendContribution: [main] INFO io.javalin.Javalin - Starting Javalin ... root ERROR ModelServerBackendContribution: [main] INFO io.javalin.Javalin - You are running Javalin 4.3.0 (released January 13, 2022. Your Javalin version is 200 days old. Consider checking for a newer version.). root ERROR ModelServerBackendContribution: [main] INFO io.javalin.Javalin - Listening on http://localhost:8081/ root ERROR ModelServerBackendContribution: [main] INFO io.javalin.Javalin - Javalin started in 411ms \o/ root INFO WorkflowLSPServerLauncher: [WorkflowDSL] Ready to accept client requests root WARN Frontend CommonFrontendContribution.configure is slow, took: 174.0 ms root INFO Changed application state from 'initialized_layout' to 'ready'. root ERROR Request edit failed with error: invalid json response body at http://localhost:8081/api/v1/edit?modeluri=superbrewer3000.coffee reason: Unexpected end of JSON input FetchError: invalid json response body at http://localhost:8081/api/v1/edit?modeluri=superbrewer3000.coffee reason: Unexpected end of JSON input
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Deel96, we are currently facing some issues on current master, as we working on updating the coffee editor to new versions. Specifically, the issue you described is tracked here: eclipse-emfcloud/coffee-editor#446 Please see also the issues page of the coffee editor: https://github.com/eclipse-emfcloud/coffee-editor/issues PS: It would be great if you could wrap such long log excerpts in collapsible |
Beta Was this translation helpful? Give feedback.
Hi @Deel96,
we are currently facing some issues on current master, as we working on updating the coffee editor to new versions. Specifically, the issue you described is tracked here: eclipse-emfcloud/coffee-editor#446
Please see also the issues page of the coffee editor: https://github.com/eclipse-emfcloud/coffee-editor/issues
PS: It would be great if you could wrap such long log excerpts in collapsible
<details>
tags for example to make the thread more readable to others. Thanks!