Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug server side error

Discussion in 'Unity Cloud Content Delivery' started by severin1212, Sep 18, 2020.

  1. severin1212

    severin1212

    Joined:
    May 18, 2020
    Posts:
    29
    Hello I succesfuly generated management api and started working:
    First authentication worked but then I just wanted to get a bucket and debug it , async and not async , both don't work and I get an internal server error number 500
    ApiException: Error converting value "xxxxxxxxxxxxxxxxxxxxxxx" to type 'System.Nullable`1[Guid]'. Path 'id', line 1, position 44
    Configuration myConfig = new Configuration();
    myConfig.Username = "xxxxxxxxxxxxxxxx";
    myConfig.Password = "xxxxxxxxxxxxxxxxx1";
    myConfig.AddDefaultHeader("Authorization", "Basic xxxxxxxxxxxxxxxx3");
    BucketsApi myBapi = new BucketsApi(myConfig);
    Bucket myBucket = new Bucket();
    myBucket = myBapi.GetBucket("xxxxxxxxxxxxxxxxxxxxxxx");
    Am I doing something wrong?
     
  2. severin1212

    severin1212

    Joined:
    May 18, 2020
    Posts:
    29
    this gets triggered by this function
    ApiException: Error converting value "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" to type 'Guid'. Path 'id', line 1, position 44.
    IO.Swagger.Client.ApiClient.Deserialize (RestSharp.IRestResponse response, System.Type type) (at Assets/IO.Swagger/Client/ApiClient.cs:331)
    IO.Swagger.Api.BucketsApi.GetBucketWithHttpInfo (System.String bucketid) (at Assets/IO.Swagger/Api/BucketsApi.cs:855)
     
  3. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    134
    After our discussion in another thread about generating the client did this get resolved?
     
  4. severin1212

    severin1212

    Joined:
    May 18, 2020
    Posts:
    29
    Yes Thanks tim