Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raids endpoint returns Not Found error #122

Closed
a727891 opened this issue Jul 13, 2022 · 0 comments · Fixed by #123
Closed

Raids endpoint returns Not Found error #122

a727891 opened this issue Jul 13, 2022 · 0 comments · Fixed by #123
Labels
Area: Web API v2 Related to the v2 web API Duration: Short Less than 2 hours of estimated work Priority: High High priority Resolution: Fixed The issue has been fixed Type: Bug Something isn't working

Comments

@a727891
Copy link

a727891 commented Jul 13, 2022

I am trying to use the base Raids endpoint to enumerate all wings and encounters. The account specific endpoint that displays weekly clears is working correctly.

GW2Sharp is installed with version 1.7.2 via NuGet inside a BlishHud module.

            try
            {
                Logger.Debug("Getting wings from the API.");
                var apiData = await Gw2ApiManager.Gw2ApiClient.V2.Raids.AllAsync()
                //... process raid wings
            }
            catch (Exception ex)
            {
                Logger.Debug(ex, "Failed to load ");
            }

Returned Exception

Gw2Sharp.WebApi.Exceptions.NotFoundException: not found
   at Gw2Sharp.WebApi.Middleware.ExceptionMiddleware.<>c__DisplayClass1_0.<<OnRequestAsync>g__ExecAsync|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Gw2Sharp.WebApi.Middleware.RequestSplitterMiddleware.<>c__DisplayClass4_0.<<OnRequestAsync>g__ExecAsync|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Gw2Sharp.WebApi.Middleware.CacheMiddleware.<RequestGetAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Gw2Sharp.WebApi.Caching.BaseCacheMethod.<>c__DisplayClass4_0.<<GetOrUpdateAsync>g__ExecAsync|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Gw2Sharp.WebApi.Middleware.CacheMiddleware.<OnAllRequestAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Gw2Sharp.WebApi.Http.WebApiRequest.<ExecuteAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Gw2Sharp.WebApi.V2.Clients.BaseEndpointBulkAllClient`2.<AllAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Soeed.RaidClears.RaidClearsModule.<QueryRaidWings>d__25.MoveNext() in Module.cs:line 139

Potential Fix
I think the issue is the endpoint path for this client is missing the pluralization.


[EndpointPath("raid")] instead of being [EndpointPath("raids")] to render the api url https://api.guildwars2.com/v2/raids

@Archomeda Archomeda added Type: Bug Something isn't working Priority: High High priority Duration: Short Less than 2 hours of estimated work Area: Web API v2 Related to the v2 web API labels Jul 14, 2022
@Archomeda Archomeda added Resolution: Fixed The issue has been fixed Status: Waiting for release Work has finished and is waiting to be released labels Jul 14, 2022
@Archomeda Archomeda removed the Status: Waiting for release Work has finished and is waiting to be released label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Web API v2 Related to the v2 web API Duration: Short Less than 2 hours of estimated work Priority: High High priority Resolution: Fixed The issue has been fixed Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants