<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[שגיאת 502 דיבאג על שרת]]></title><description><![CDATA[<p dir="auto">פיתחתי אתר  (angular dotnet sql) על PC  והעלתי אותו לשרת מרוחק.<br />
יש לי קונטרולר שפונה ל-API חיצוני ומקבל ממנו נתונים.<br />
כשאני עובד על localhost הקונטרולר פועל תקין.</p>
<p dir="auto">כשאני מפעיל אותו בשרת באמצעות האתר, הוא מחזיר לי שגיאה 502.<br />
ניסיתי לזהות היכן הבעיה, אבל קודם אני צריך לדעת <strong>איך</strong> מזהים היכן הבעיה.</p>
<p dir="auto">ניסיתי להפנות את כל הפלט של של הדוטנט לקובץ<br />
<code>dotnet proj.dll &gt; ~/allOut.txt 2&gt;&amp;1</code><br />
אבל אין שם משהו מעניין.</p>
<p dir="auto">ניסיתי לשתול בקונטרולר הודעות <code>()Console.WriteLine</code>  אבל אין פלט בזמן הריצה על הלינוקס.</p>
<p dir="auto">עכשיו  מצאתי שכשאני מריץ את ה-API (מדובר ב-API ה<a href="https://tchumim.com/post/150639">זה</a>) ישירות מהשרת עם curl אני מקבל<br />
<code>curl: (28) Failed to connect to www.nadlan.gov.il port 443:  Connection timed out</code></p>
<p dir="auto">שזו בעצם אותה שגיאה שקיבלתי דרך הדפדפן.</p>
<hr />
<p dir="auto">א. מה הדרך לדבג את דוטנט בזמן ריצה על שרת ?</p>
<p dir="auto">ב. האם בשביל כל שינוי (כמו הכנסת <code>()Console.WriteLine</code>) אין ברירה אלא לחזור ל-PC, לקמפל מחדש, ולהעביר לשרת?</p>
<p dir="auto">ג. באופן פרטי על המקרה הזה השרת שלי ממוקם בברלין ל"ע, האם יתכן <a href="http://xn---gov-4wf.il">ש-gov.il</a> חוסמים גישה ממדינות אחרות? , אם כן האם VPN יעזור? יש דרכים אחרות להתמודד?</p>
<p dir="auto">תודה רבה.</p>
]]></description><link>https://tchumim.com/topic/15254/שגיאת-502-דיבאג-על-שרת</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 09:27:56 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/15254.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Jul 2023 09:23:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Wed, 05 Jul 2023 09:50:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dovid">@<bdi>dovid</bdi></a> כתב ב<a href="/post/154871">שגיאת 502 דיבאג על שרת</a>:</p>
<blockquote>
<p dir="auto">עוד פעם נושא מסתעף...</p>
</blockquote>
<p dir="auto">פתחתי כנושא חדש</p>
]]></description><link>https://tchumim.com/post/154876</link><guid isPermaLink="true">https://tchumim.com/post/154876</guid><dc:creator><![CDATA[yyy]]></dc:creator><pubDate>Wed, 05 Jul 2023 09:50:45 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Wed, 05 Jul 2023 08:40:55 GMT]]></title><description><![CDATA[<p dir="auto">עוד פעם נושא מסתעף...</p>
]]></description><link>https://tchumim.com/post/154871</link><guid isPermaLink="true">https://tchumim.com/post/154871</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Wed, 05 Jul 2023 08:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Tue, 04 Jul 2023 09:54:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%90%D7%95%D7%A8%D7%97-%D7%A4%D7%95%D7%A8%D7%97">@<bdi>אורח-פורח</bdi></a> החסימה עליה אתה מדבר היא ברמת האפליקציה ואז שייך קוד שגיאה, ופה זה חסימה ברמת התעבורה ולכן אין בכלל תשובה, שני החסימות הם בגלל חומות אש ברמות שונות.</p>
]]></description><link>https://tchumim.com/post/154832</link><guid isPermaLink="true">https://tchumim.com/post/154832</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Tue, 04 Jul 2023 09:54:11 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Tue, 04 Jul 2023 09:28:41 GMT]]></title><description><![CDATA[<p dir="auto">אני מחו"ל והרבה אתרי ממשלה OREF לדוגמה בריאות ועוד הרבה שירותי ממשל לא עובדים מקוון מחו"ל משום שרת<br />
הקוד שחוזר זה 403 עם קוד שגיאה ליצור קשר עם בעל האתר לברר למה הוא חסם אותך<br />
Access Denied<br />
You don't have permission to access "<a href="http://www.oref.org.il/" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.oref.org.il/</a>" on this server.<br />
Reference #18.aed27868.1688462677.475026e4<br />
אז זה לא קשור לחסימה הזאת זה לא   502</p>
]]></description><link>https://tchumim.com/post/154831</link><guid isPermaLink="true">https://tchumim.com/post/154831</guid><dc:creator><![CDATA[אורח פורח]]></dc:creator><pubDate>Tue, 04 Jul 2023 09:28:41 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Tue, 04 Jul 2023 07:27:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dovid">@<bdi>dovid</bdi></a> כתב ב<a href="/post/154804">שגיאת 502 דיבאג על שרת</a>:</p>
<blockquote>
<p dir="auto">אתחיל מג',  זה נפוץ שאתרי ממשלה חסומים לכתובות אייפי של שרתים נפוצים שהם בעצם בד"כ מארחים בוטים. הבעיה היא לא ברלין כפי שאתה יכול להיווכח פה <a href="https://check-host.net/check-http?host=www.nadlan.gov.il" target="_blank" rel="noopener noreferrer nofollow ugc">https://check-host.net/check-http?host=www.nadlan.gov.il</a> אלא לדעתי כתובות של ספקי אירוח.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aaron">@<bdi>aaron</bdi></a> כתב ב<a href="/post/154802">שגיאת 502 דיבאג על שרת</a>:</p>
<blockquote>
<p dir="auto">VPN יעזור, פרוקסי יהיה קל יותר לשימוש.</p>
</blockquote>
<p dir="auto">האם יש דרך לדעת לפני ניסוי וטעיה, לאיזה פרוקסי הוא יסכים להגיב?</p>
]]></description><link>https://tchumim.com/post/154826</link><guid isPermaLink="true">https://tchumim.com/post/154826</guid><dc:creator><![CDATA[yyy]]></dc:creator><pubDate>Tue, 04 Jul 2023 07:27:14 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Mon, 03 Jul 2023 10:24:27 GMT]]></title><description><![CDATA[<p dir="auto">אתחיל מג',  זה נפוץ שאתרי ממשלה חסומים לכתובות אייפי של שרתים נפוצים שהם בעצם בד"כ מארחים בוטים. הבעיה היא לא ברלין כפי שאתה יכול להיווכח פה <a href="https://check-host.net/check-http?host=www.nadlan.gov.il" target="_blank" rel="noopener noreferrer nofollow ugc">https://check-host.net/check-http?host=www.nadlan.gov.il</a> אלא לדעתי כתובות של ספקי אירוח.<br />
א. זה שאלה גדולה. דיבאג אמור להיות אצלך וההבדלים בין המחשב שלך למחשב הייצור אמורים להיות כמעט בלתי קיימים. כמובן שהמציאות היא אחרת ואפילו דוקר לא סוגר כל הבדל בין טסט ליצור, ובאמת בשביל זה משתמשים בלוגים.<br />
בד"כ כותבים לוגים בצורה מסודרת לשירות לוגים שכותב את הלוגים לקבצים מסודרים או למסד נתונים, אתה בכל מקרה תצטרך את זה במוקדם או במאוחר עבור תיועד ומעקב על שגיאות וכדומה. תראה פה על הנושא בasp: <a href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0#configure-logging" target="_blank" rel="noopener noreferrer nofollow ugc">https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0#configure-logging</a></p>
<p dir="auto">ב. אכן כל שינוי מחייב הידור מחדש, אבל אפשרל לשתול מראש לוגים ולהפעיל אותם עם משתנה סביבה בעת ההפעלה (אפשר לשנות בשרת ולהדר שמה למי שרוצה (לא הכי כיף), ובכל מקרה אמורה להיות פרקטיקה די זריזה להעברת החומר מפיתוח לשרת. דרך שנראית לי נפוצה כיום היא שימוש בגיט והידור בשרת).</p>
]]></description><link>https://tchumim.com/post/154804</link><guid isPermaLink="true">https://tchumim.com/post/154804</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 03 Jul 2023 10:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to שגיאת 502 דיבאג על שרת on Mon, 03 Jul 2023 10:21:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yyy">@<bdi>yyy</bdi></a> כתב ב<a href="/post/154801">שגיאת 502 דיבאג על שרת</a>:</p>
<blockquote>
<p dir="auto">ג. באופן פרטי על המקרה הזה השרת שלי ממוקם בברלין ל"ע, האם יתכן <a href="http://xn---gov-4wf.il">ש-gov.il</a> חוסמים גישה ממדינות אחרות?</p>
</blockquote>
<p dir="auto">בהחלט יתכן. קרוב לוודאי בהתחשב שזה השגיאה שאתה מקבל בcurl בשרת.<br />
VPN יעזור, פרוקסי יהיה קל יותר לשימוש.</p>
]]></description><link>https://tchumim.com/post/154802</link><guid isPermaLink="true">https://tchumim.com/post/154802</guid><dc:creator><![CDATA[aaron]]></dc:creator><pubDate>Mon, 03 Jul 2023 10:21:57 GMT</pubDate></item></channel></rss>