microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

Error parsing Infinity value when extracting API service #227

Closed mikaelsand closed 3 years ago

mikaelsand commented 3 years ago

I finally managed to install everything (including the dotnet 2.1 SDK, not runtime). When I try to "Extract Service" from the context menu I get this error:

Error occured: Error parsing Infinity value. Path 'ts', line 2, position 9. Error parsing Infinity value. Path 'ts', line 2, position 9.

Below is the whole output. I have removed some names and all but one of my subscriptions.

Running command: "az login"... WARNING: The default web browser has been opened at https://login.microsoftonline.com/common/oauth2/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow withaz login --use-device-code`. WARNING: You have logged in. Now let us find all the subscriptions to which you have access... [ { "cloudName": "AzureCloud", "homeTenantId": "GUID", "id": "GUID", "isDefault": false, "managedByTenants": [], "name": "DataAnalyticsTest", "state": "Enabled", "tenantId": "GUID", "user": { "name": "user@domain.com", "type": "user" } } ] Finished running command: "az login". Running command: "az account set --subscription GUID"... Finished running command: "az account set --subscription GUID". Running command: "dotnet apimtemplate.dll extract --extractorConfig "c:\Dev\code\path\filename.json""... API Management Template Connecting to MY-APIM-Instance API Management Service on MY-APIM-Instance-RG Resource Group ... Executing full extraction ...

Extracting global service policy from service

mikaelsand commented 3 years ago

Sorry for the strange formatting. I have no idea how that happened....

mikaelsand commented 3 years ago

Ok, so I just changed employer and realized that I had not signed in to sync my settings. I signed in, the settings got synced, and now it just works.