|
|
@ -148,7 +148,7 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
fetch_json(%{@token_uri => {:ok, [decoded_json]}}, hex_token_id) |
|
|
|
fetch_json(%{@token_uri => {:ok, [decoded_json]}}, hex_token_id) |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}. error #{inspect(e)}"], |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}.", Exception.format(:error, e, __STACKTRACE__)], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -161,7 +161,7 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
fetch_json(%{@uri => {:ok, [decoded_json]}}, hex_token_id) |
|
|
|
fetch_json(%{@uri => {:ok, [decoded_json]}}, hex_token_id) |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}. error #{inspect(e)}"], |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}.", Exception.format(:error, e, __STACKTRACE__)], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -178,7 +178,11 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
end |
|
|
|
end |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Unknown metadata format base64 #{inspect(base64_encoded_json)}. error #{inspect(e)}"], |
|
|
|
Logger.debug( |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
"Unknown metadata format base64 #{inspect(base64_encoded_json)}.", |
|
|
|
|
|
|
|
Exception.format(:error, e, __STACKTRACE__) |
|
|
|
|
|
|
|
], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -195,7 +199,8 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
end |
|
|
|
end |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Unknown metadata format base64 #{inspect(base64_encoded_json)}. error #{inspect(e)}"], |
|
|
|
Logger.debug( |
|
|
|
|
|
|
|
["Unknown metadata format base64 #{inspect(base64_encoded_json)}", Exception.format(:error, e, __STACKTRACE__)], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -228,7 +233,7 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
check_type(json, hex_token_id) |
|
|
|
check_type(json, hex_token_id) |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}. error #{inspect(e)}"], |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}.", Exception.format(:error, e, __STACKTRACE__)], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -241,7 +246,7 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
check_type(json, hex_token_id) |
|
|
|
check_type(json, hex_token_id) |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}. error #{inspect(e)}"], |
|
|
|
Logger.debug(["Unknown metadata format #{inspect(json)}.", Exception.format(:error, e, __STACKTRACE__)], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -282,7 +287,8 @@ defmodule Explorer.Token.InstanceMetadataRetriever do |
|
|
|
end |
|
|
|
end |
|
|
|
rescue |
|
|
|
rescue |
|
|
|
e -> |
|
|
|
e -> |
|
|
|
Logger.debug(["Could not send request to token uri #{inspect(uri)}. error #{inspect(e)}"], |
|
|
|
Logger.debug( |
|
|
|
|
|
|
|
["Could not send request to token uri #{inspect(uri)}.", Exception.format(:error, e, __STACKTRACE__)], |
|
|
|
fetcher: :token_instances |
|
|
|
fetcher: :token_instances |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|