exceptionless / Exceptionless.Net

Exceptionless clients for the .NET platform
https://exceptionless.com
Other
557 stars 142 forks source link

This SDK does not support the latest version of ExceptionLess #310

Closed xrcdev closed 1 year ago

xrcdev commented 1 year ago

When writing log, I can't found log in ExceptionLess website, I debugged Exceptionless.AspNetCore code found that the latest version of ExceptionLess I deployed has an interface address of "api/v2/projects/{ProjectId}/events", and the interface address called by the SDK is "api/v2/events", and an error occurs: "No. project id specified and no default project was found", I think this SDK does not support the latest version of ExceptionLess

niemyjski commented 1 year ago

Can you please attach the client logs, this SDK does support the latest version of exceptionless and it is something we test against every release.

xrcdev commented 1 year ago

In the appsettings.json configuration, the configuration template is as follows:

"Exceptionless": {
  "ApiKey": "xxx",
  "ServerUrl": "http://10.10.28.201:5200",
}

I previously set the ApiKey using a User Scoped Token, but I changed it to a Client-Scoped Token, and it worked. Therefore, I apologize, this was my mistake. I was not clear on how to use it. I have one more question, that is, how long does a Client-Scoped Token expire? I even hope that it will never expire, so I don't have to update this ApiKey configuration frequently.

xrcdev commented 1 year ago

@niemyjski I hope you can answer this question. Thank you very much. “I have one more question, that is, how long does a Client-Scoped Token expire? I even hope that it will never expire, so I don't have to update this ApiKey configuration frequently.”

niemyjski commented 1 year ago

They don't expire