logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

In VS Code: Built-In Operations list is empty and throws error "Unexpected token < in JSON at position 0"

Open gabrieletassoni opened this issue 3 years ago • 4 comments
trafficstars

Local dev machine

VS Code Version: 1.64.2
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:02:29.527Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.13.0-19-generic

Devcontainer:

Based on: mcr.microsoft.com/vscode/devcontainers/base:0-hirsute

vscode ➜ /workspaces/FR-Comparator/src/Stateful1 (master ✗) $ node -v
v12.22.10
vscode ➜ /workspaces/FR-Comparator/src/Stateful1 (master ✗) $ npm -v
6.14.16
vscode ➜ /workspaces/FR-Comparator/src/Stateful1 (master ✗) $ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.416
 Commit:    8d3765c609

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         ubuntu.20.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.416/

Host (useful for support):
  Version: 3.1.22
  Commit:  35fa579a30

.NET Core SDKs installed:
  3.1.416 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
vscode ➜ /workspaces/FR-Comparator/src/Stateful1 (master ✗) $ COLUMNS=132 dpkg -l | grep azure-functions-core-tools-3
ii  azure-functions-core-tools-3   3.0.3904-1                        amd64        Azure Function Core Tools v3

Whenever I try to add a trigger or Operation from Built-In tab of the Designer for a workflow.json, it throws me the following error (actually making impossible to add a Built-In trigger):

ErrorBuiltIn

Operations from Azure tab are correctly shown and selectable:

AzureOperations

If I add the triggers or operations from Azure designer on the online resource, it works, I can copy and paste the generated workflow on the localdev one and from that moment onwards, I can configure the operations and triggers from VS Code.

gabrieletassoni avatar Feb 22 '22 09:02 gabrieletassoni

@gabrieletassoni do you maybe have actions or triggers in your workflow that use a colon in the name? We had some issues with actions that had a colon in the name and got the same error message when viewing actions inside a run.

rubenaster avatar Feb 23 '22 12:02 rubenaster

Hi, the workflow.json was without actions or triggers, just the initial "skeleton" of the workflow.json as created by the extension.

gabrieletassoni avatar Feb 23 '22 17:02 gabrieletassoni

Could it maybe related to the fact that I'm working in a Dev Container? Maybe the builtin list makes a request on a port not exported by the dev container, failing to get the list and instead obtaining an unparsable (by json) html error page?

Here is a screenshot of the ports section in my VS code while using the configuration posted in the initial bug report:

Screenshot from 2022-02-24 16-46-32

gabrieletassoni avatar Feb 24 '22 15:02 gabrieletassoni

having same issue...

cschar avatar Jun 02 '22 17:06 cschar

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 20 '22 22:10 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 27 '22 22:10 github-actions[bot]