question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After update Swashbuckle.AspNetCore.Swagger to 4.0 The auto rest generate the package with following error

Property ‘addUserAgentInfo’ does not exist on type ‘AzureMachineLearningDiscoveryClientContext’.

40 this.addUserAgentInfo(${packageName}/${packageVersion}); ~~~~~~~~~~~~~~~~

Discovery.EntryPoints.swagger.json.txt

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
ghostcommented, Nov 19, 2018

Yes, autorest is an interesting application. The autorest application itself uses several plugin NPM packages that the autorest application manages itself. Just trying to update autorest won’t do anything in this scenario. What you need to do is run:

autorest --reset

This should indicate to autorest that you want to use the latest generators. Once you’ve done this, then you should be able to regenerate and solve the problem.

0reactions
bricejarcommented, Nov 26, 2018

Thank you so much ! It worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

StorageManagementClient class - Microsoft Learn
addUserAgentInfo (any). Adds custom information to user agent header ; getLongRunningOperationResult<TResult>(HttpOperationResponse<TResult>, RequestOptions).
Read more >
How to use the ms-rest-js.Serializer function in ms-rest-js | Snyk
addUserAgentInfo (`${packageName}/${packageVersion}`); this.bool = new operations.Bool(this); this.intModel = new operations.IntModel(this); this.serializer ...
Read more >
On-premise Server: Add user-agent info to access logs
On-premise Server: Add user-agent info to access logs · 1. Take a backup copy of the server.xml located in \Connect\9. · 2. Open...
Read more >
Feature request: add user agent info to cached stylesheet
Feature request: add user agent info to cached stylesheet. Post by hoshy » Thu Oct 06, 2011 10:41 am. If you use smarty...
Read more >
Extract user_agent fields from logs using AWS ElasticSearch
PUT _ingest/pipeline/nginx { "description" : "Add user agent info from nginx user agent", "processors" : [ { "user_agent" : { "field" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found