Hubs-Foundation / hubs-cloud

Resources for self hosted Hubs Cloud instances
Mozilla Public License 2.0
151 stars 92 forks source link

The avatars are not loaded even though the avatars are available in the admin panel #168

Open Softvision-GeluHaiduc opened 3 years ago

Softvision-GeluHaiduc commented 3 years ago

[Affected Versions]:

[Affected Platforms]:

[Prerequisites]:

[Steps to reproduce]:

  1. TBD
  2. Click the “Browse” button to change the avatar and observe the behavior.

[Expected results]:

[Actual results]:

[Notes]:

┆Issue is synchronized with this Jira Task

ssm2017 commented 3 years ago

hello. i have the same issue. when calling : /api/v1/media/search?filter=featured&source=avatar_listings the journalctl is saying this :

reticulum.default@hublotvr(O): ** (exit) %ArgumentError{message: "cannot load `\"{\\\"creator\\\":\\\"\\\"}\"` as type :map for field :attributions in %Ret.Avatar{thumbnail_owned_file_id: nil, reviewed_at: nil, __meta__: #Ecto.Schema.Metadata<:loaded, \"ret0\", \"avatars\">, bin_owned_file: #Ecto.Association.NotLoaded<association :bin_owned_file is not loaded>, updated_at: nil, base_map_owned_file_id: nil, account: #Ecto.Association.NotLoaded<association :account is not loaded>, imported_from_port: nil, normal_map_owned_file: #Ecto.Association.NotLoaded<association :normal_map_owned_file is not loaded>, state: nil, parent_avatar: #Ecto.Association.NotLoaded<association :parent_avatar is not loaded>, gltf_owned_file: #Ecto.Association.NotLoaded<association :gltf_owned_file is not loaded>, emissive_map_owned_file: #Ecto.Association.NotLoaded<association :emissive_map_owned_file is not loaded>, slug: nil, allow_remixing: nil, imported_from_host: nil, description: nil, avatar_sid: nil, parent_avatar_id: nil, attributions: nil, orm_map_owned_file_id: nil, account_id: nil, base_map_owned_file: #Ecto.Association.NotLoaded<association :base_map_owned_file is not loaded>, avatar_id: nil, avatar_listings: #Ecto.Association.NotLoaded<association :avatar_listings is not loaded>, imported_from_sid: nil, parent_avatar_listing_id: nil, thumbnail_owned_file: #Ecto.Association.NotLoaded<association :thumbnail_owned_file is not loaded>, emissive_map_owned_file_id: nil, orm_map_owned_file: #Ecto.Association.NotLoaded<association :orm_map_owned_file is not loaded>, parent_avatar_listing: #Ecto.Association.NotLoaded<association :parent_avatar_listing is not loaded>, allow_promotion: nil, normal_map_owned_file_id: nil, gltf_owned_file_id: nil, bin_owned_file_id: nil, name: nil, inserted_at: nil}"}

when trying to import new avatar from the "import content" panel in admin :

Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): Cannot send event because of invalid DSN
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): 09:32:04.321 request_id=FmbzwHCpGeXECs8AACNR [info] Sent 500 in 13ms
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): 09:32:04.321 request_id=FmbzwHCpGeXECs8AACNR [info] Converted error ArgumentError to 500 response
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): 09:32:04.323 request_id=FmbzwHCpGeXECs8AACNR [warn] Failed to send Sentry event.
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): Cannot send event because of invalid DSN
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): 09:32:04.324 [error] #PID<0.758.1> running RetWeb.Endpoint (connection #PID<0.757.1>, stream id 1) terminated
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): Server: hublotvr.com:443 (https)
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): Request: GET /api/v1/meta?include_repo
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O): ** (exit) an exception was raised:
Feb 25 09:32:04 brave-troll.hublotvr.com bash[2209]: reticulum.default@hublotvr(O):     ** (ArgumentError) cannot load `""` as type :map for field :attributions in %Ret.AvatarListing{thumbnail_owned_file_id: nil, __meta__: #Ecto.Schema.Metadata<:loaded, "ret0", "avatar_listings">, tags: nil, bin_owned_file: #Ecto.Association.NotLoaded<association :bin_owned_file is not loaded>, updated_at: nil, base_map_owned_file_id: nil, account: #Ecto.Association.NotLoaded<association :account is not loaded>, normal_map_owned_file: #Ecto.Association.NotLoaded<association :normal_map_owned_file is not loaded>, avatar_listing_sid: nil, state: nil, gltf_owned_file: #Ecto.Association.NotLoaded<association :gltf_owned_file is not loaded>, order: nil, emissive_map_owned_file: #Ecto.Association.NotLoaded<association :emissive_map_owned_file is not loaded>, slug: nil, avatar: #Ecto.Association.NotLoaded<association :avatar is not loaded>, child_avatars: #Ecto.Association.NotLoaded<association :child_avatars is not loaded>, description: nil, attributions: nil, orm_map_owned_file_id: nil, account_id: nil, base_map_owned_file: #Ecto.Association.NotLoaded<association :base_map_owned_file is not loaded>, avatar_id: nil, parent_avatar_listing_id: nil, thumbnail_owned_file: #Ecto.Association.NotLoaded<association :thumbnail_owned_file is not loaded>, emissive_map_owned_file_id: nil, orm_map_owned_file: #Ecto.Association.NotLoaded<association :orm_map_owned_file is not loaded>, parent_avatar_listing: #Ecto.Association.NotLoaded<association :parent_avatar_listing is not loaded>, normal_map_owned_file_id: nil, avatar_listing_id: nil, gltf_owned_file_id: nil, bin_owned_file_id: nil, name: nil, inserted_at: nil}

workaround : delist and remove every tag (featured, default, base...) for every avatar to be able to have the "create avatar" panel to appear (but blank) on the client side and then upload the base glb taken from github and add a default base map to create a new avatar...