natmlx / natml-unity

High performance, cross-platform machine learning for Unity Engine.
Apache License 2.0
230 stars 25 forks source link

Requests to https://api.natml.ai/graph failing - breaks building project #59

Closed allan-o3h closed 1 year ago

allan-o3h commented 1 year ago

Running NatML 1.1.6 I'm seeing the following error starting today:

InvalidOperationException: roles is not iterable (cannot read property undefined)
NatML.Hub.NatMLHub.RequestNet[TRequest,TResponse] (TRequest request, System.String accessKey) (at Library/PackageCache/ai.natml.hub@1.0.20/Runtime/NatMLHub.cs:204)
NatML.Hub.NatMLHub.GetUser (System.String accessKey) (at Library/PackageCache/ai.natml.hub@1.0.20/Runtime/NatMLHub.cs:77)
Rethrow as AggregateException: One or more errors occurred. (roles is not iterable (cannot read property undefined))
System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
System.Threading.Tasks.Task`1[TResult].get_Result () (at <b6c5d0f08ddf477186f780f49bb14dee>:0)
NatML.Hub.Editor.HubProjectSettings.CreateSettings (System.Boolean refresh) (at Library/PackageCache/ai.natml.hub@1.0.20/Editor/HubProjectSettings.cs:46)
NatML.Hub.Editor.HubProjectSettings.OnLoad () (at Library/PackageCache/ai.natml.hub@1.0.20/Editor/HubProjectSettings.cs:64)

Which is preventing our Unity project from building.

This appears to be a change with the https://api.natml.ai/graph endpoint.

olokobayusuf commented 1 year ago

This has been resolved.