دعم الموقع

E/flutter ( 4456): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: Failed host lookup: 'api.themoviedb.org' (OS Error: No address associated with hostname, errno = 7)

5 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Hi @svaykong,

Do you know what version of TLS you are connecting to TMDb with? We recently made TLS 1.1 the minimum and I'm wondering if that's what could be the issue.

I am getting an error now as well, same time framee

            //create the connection
            string address = TheMovieDBConn.TMDBAddress + "movie/" + inIMDB + "?api_key=" + TheMovieDBConn.THMDAPIKEY + "&append_to_response=credits,releases,trailers";
            try
            {
                var request = System.Net.WebRequest.Create(address) as System.Net.HttpWebRequest;
                request.KeepAlive = true;
                request.Method = "GET";
                request.Accept = "application/json";
                request.ContentLength = 0;
                string responseContent = null;

                using (var response = request.GetResponse() as System.Net.HttpWebResponse)    <------------------------ throwing exception below
                {
                    using (var reader = new System.IO.StreamReader(response.GetResponseStream()))
                    {
                        responseContent = reader.ReadToEnd();
                        TheMovieDBMovie movieSearchjson = JsonConvert.DeserializeObject<TheMovieDBMovie>(responseContent);
                        movieSearch = movieSearchjson;
                    }
                }
            }

If I go back to http instead of https I am ok, with HTTPS the getresponse is throwing an error that:

InnerException  {"Authentication failed because the remote party has closed the transport stream."} System.Exception {System.IO.IOException}

Thanks Mr. Travis Bell. Now my code is display normally.

If the fault is due to the TLS protocol, how can I correct it in the Dart language? I am new to this and I am learning to program with Flutter and Dart; I am precisely following a tutorial to consume resources from your page (themoviedb.org), and I get the same error as fellow Svykong. I thank you in advance for your help because I have not been able to make the program work.

Hi @adelosrc Unfortunately I do not have any Dart experience so I am not able to provide any assistance. I would suggest asking over on somewhere like Stack Overflow. They are usually much better about answering questions about specific programming languages and implementations.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول