Starts in:
0 DAY
18 HRS
42 MIN
26 SEC
Starts in:
0 D
18 H
42 M
26 S
Open Closed

Sometimes log error status 0 appears #8272


User avatar
0
portx-dev created

Sometimes log error status 0 appears. From the log below, can you help me determine the cause?

ERROR {
  "headers": {
    "normalizedNames": "[Map]",
    "lazyUpdate": null,
    "headers": "[Map]"
  },
  "status": 0,
  "statusText": "Unknown Error",
  "url": [URL],
  "ok": false,
  "name": "HttpErrorResponse",
  "message": "Http failure response for [URL]: 0 Unknown Error",
  "error": {
    "isTrusted": true
  • ABP Framework version: v8.3.2
  • UI Type: Angular
  • Database System: MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

26 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share the full applicaation error logs

  • User Avatar
    0
    portx-dev created

    @liangshiwei pls give me your email, i will sent log file to email

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    my email is shiwei.liang@volosoft.com

  • User Avatar
    0
    portx-dev created

    @liangshiwei i sent log to your email, pls check it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    I can't find any Http failure response for [URL]: 0 Unknown Error error message in the log file

  • User Avatar
    0
    portx-dev created

    open , write

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    sorry, i didn't get it.

  • User Avatar
    0
    portx-dev created

    Sorry...! We've entered text to keep the page open.

    Please wait a little longer.

  • User Avatar
    0
    portx-dev created

    @liangshiwei It seems that because the server cannot be connected, API returns an error with status 0. There is only the client side log as I originally sent. This problem happens quite often so I don't think the cause is the internet.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I only see errors about database connection

  • User Avatar
    0
    portx-dev created

    @liangshiwei

    I experimented with disconnecting the database while the angular app was running and the error I received was http code 500, not http code 0.

    So I think this http status code 0 error is not related to the db connection being temporarily interrupted :(

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    So I think this http status code 0 error is not related to the db connection being temporarily interrupted :(

    Make sense, but I didn't see any error message in logs about http code 0

  • User Avatar
    0
    portx-dev created

    @liangshiwei Thank you for your help, I think you won't be able to find http status code 0 from auth server log (netcore), api server log (netcore)

    Because this is an angular client issue where the request cannot go to the server or is canceled for some reason

    With my limited understanding, I can sometimes reproduce this error when the browser has an unstable internet connection (I try disconnecting the internet then operating on the angular app, I will see the status code http 0).

    However, I would like to find another cause

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Okay, If so, it's a network problem; the requests are not even sent to the backend.

  • User Avatar
    0
    portx-dev created

    I will send you an example of the error. It happens quite frequently, so I don't think it's a network error. Could there be a cause on the ABP side?

  • User Avatar
    0
    portx-dev created

    We can invite you to our datadog. Want to see datadog first-hand?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Could there be a cause on the ABP side?

    I'm not sure, but I have never seen this problem on the support website before.

    We can invite you to our datadog.

    sure, please

  • User Avatar
    0
    portx-dev created

    ・あなたのメールアドレスに招待状が送信されました。

    ・以下は0エラーの一覧です。 https://ap1.datadoghq.com/rum/sessions?query=%40type%3Aerror%20%40application.id%3Adf488732-043f-48ca-ba63-5561fe80a05e%20env%3Aprod%2 0%40error.message%3A%2A%5C%22status%5C%22%5C%3A%5C%200%2A&agg_m=count&agg_m_source=base&agg_t=count&cols=&fromUser=true&graphType=wate rfall&p_tab_h_event=AwAAAZNHUvZUwcEdawAAABhBWk5IVXZxMEFBQTJiNTRkcWR1RENRQUQAAAAkMDE5MzQ3NjUtOTU3Zi00MjVlLWE0NjEtYjcwY2UwZGE0ZWI4AAAEFg &panel_tab=flamegraph&shouldShowLegend=true&spanViewType=logs&track=rum&viz=stream&from_ts=1731471475700&to_ts=1732076275700&live=true

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Thanks, I can login to datadog, how do I to use it to check.

  • User Avatar
    0
    portx-dev created

    As for the screenshot and content, for example, there is an error like the one below. https://bit.ly/491MYKI

    I'm sure you don't know the cause, but is there any way to deal with it?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Yes, I can see many error records. But it's not enough to find the problem.

    You can try check the webserver(nginx, IIS etc.) logs, maybe you can find something.

  • User Avatar
    0
    portx-dev created

    I wish I could find something in there, but logically, the nginx web server no longer plays a role in this issue because:

    1. nginx webserver has served js resource to the browser
    2. js code (angular app) execute on browser remote call to auth server, api server and some time we got http status 0

    And i double check api | auth server log on datadog link here But couldn't find anything useful

  • User Avatar
    0
    portx-dev created

    for example, the following URL is the web server log when 0error occurred, but there was no error. https://bit.ly/4fEme5i

    I don't need to know the cause, but is there any way to deal with it?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, but I can't find anything.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can try to check if this issue can be reproduced locally or in other environments.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06