mystasly48 / NowPlayingForSpotify

NowPlaying tweet application for Spotify!
GNU Lesser General Public License v3.0
2 stars 1 forks source link

リモート名を解決できませんでした。'open.spotify.com' #11

Open mystasly48 opened 7 years ago

mystasly48 commented 7 years ago

The Beatles の Yesterday を聞いていたらクラッシュしてしまいました。

以下に対象のトラックスクリーンショットエラー全文を貼ります。

対象のトラック:

Title; Yesterday - Remastered 2015 Artist: The Beatles Album: 1 (Remastered) https://open.spotify.com/track/4E5rL7YL0hVUPqeMSpjEF2

スクリーンショット:

エラー全文:

Just-In-Time (JIT) デバッグを呼び出すための詳細については、
ダイアログ ボックスではなく、このメッセージの最後を参照してください。

************** 例外テキスト **************
System.Net.WebException: リモート名を解決できませんでした。: 'open.spotify.com'
   場所 System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   場所 System.Net.WebClient.DownloadString(Uri address)
   場所 System.Net.WebClient.DownloadString(String address)
   場所 SpotifyAPI.Local.Models.Track.GetAlbumArtUrl(AlbumArtSize size)
   場所 SpotifyAPI.Local.Models.Track.<GetAlbumArtAsync>d__22.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
   場所 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   場所 NowPlayingForSpotify.MainForm.<UpdateTrack>d__43.MoveNext() 場所 D:\Programming\C#\WinForm\NowPlayingForSpotify\NowPlayingForSpotify\MainForm.cs:行 350
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
   場所 System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

************** 読み込まれたアセンブリ **************
mscorlib
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
NowPlayingForSpotify
    アセンブリ バージョン:1.0.0.0
    Win32 バージョン:1.0.0.0
    コードベース:file:///D:/Programming/C%23/WinForm/NowPlayingForSpotify/NowPlayingForSpotify/bin/Release/NowPlayingForSpotify.exe
----------------------------------------
System.Windows.Forms
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
SpotifyAPI
    アセンブリ バージョン:1.0.0.0
    Win32 バージョン:1.0.0.0
    コードベース:file:///D:/Programming/C%23/WinForm/NowPlayingForSpotify/NowPlayingForSpotify/bin/Release/SpotifyAPI.DLL
----------------------------------------
NowPlayingForSpotify.resources
    アセンブリ バージョン:1.0.0.0
    Win32 バージョン:1.0.0.0
    コードベース:file:///D:/Programming/C%23/WinForm/NowPlayingForSpotify/NowPlayingForSpotify/bin/Release/ja/NowPlayingForSpotify.resources.DLL
----------------------------------------
System.Configuration
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CoreTweet
    アセンブリ バージョン:0.7.2.352
    Win32 バージョン:0.7.2.352
    コードベース:file:///D:/Programming/C%23/WinForm/NowPlayingForSpotify/NowPlayingForSpotify/bin/Release/CoreTweet.DLL
----------------------------------------
Newtonsoft.Json
    アセンブリ バージョン:9.0.0.0
    Win32 バージョン:9.0.1.19813
    コードベース:file:///D:/Programming/C%23/WinForm/NowPlayingForSpotify/NowPlayingForSpotify/bin/Release/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
mscorlib.resources
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ja_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.resources
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_ja_b77a5c561934e089/System.resources.dll
----------------------------------------
System.Windows.Forms.resources
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.6.1586.0 built by: NETFXREL2
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ja_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT デバッグ **************
Just-In-Time (JIT) デバッグを有効にするには、このアプリケーション、
またはコンピューター (machine.config) の構成ファイルの jitDebugging 
値を system.windows.forms セクションで設定しなければなりません。
アプリケーションはまた、デバッグを有効にしてコンパイルされなければ
なりません。

例:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

JIT デバッグが有効なときは、このダイアログ ボックスで処理するよりも、
ハンドルされていない例外はすべてコンピューターに登録された
JIT デバッガーに設定されなければなりません。
mystasly48 commented 5 years ago

GetAlbumArtUrl メソッドが原因って分かりませんか? でもこの時からアップデートされて構造が変わってるみたいなので内部は分かりませんが。 おそらくURLの取得や整形で失敗しているので、確認するためにトラックのURLとかアルバムのURLが必要です。 https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/fe9d02bd4fd51c06aa2492740c04f8ede32986a2/SpotifyAPI.Web/SpotifyWebBuilder.cs