Меню

Произошла ошибка при получении данных json код состояния http 404 not found

  • Начало

  • Помощь

  • Вход

  • Регистрация

  • FAQ
    • FAQ Joomla 3
    • FAQ Joomla 2.5 (версия не поддерживается)
    • FAQ Joomla 1.5 (версия не поддерживается)
  • Ресурсы
    • Новости Joomla
    • Черный список сайтов о Joomla
    • Белый список сайтов сайтов о Joomla
    • Неофициальный сервер обновлений
  • Правила
  • Хостинг
  1. Форум русской поддержки Joomla! CMS
  2. Общий
  3. Веб разработка
  4. Общие вопросы веб разработки
  5. Произошла ошибка при получении данных json: код состояния http 0. error

0 Пользователей и 1 Гость просматривают эту тему.

  • 2 Ответов
  • 1906 Просмотров


Похожие темы

В приложении asp.net mvc у меня есть метод, который возвращает JsonResult в представление. Он отлично работает на моем локальном компьютере, однако, когда приложение развертывается на сервере веб-хостинга, когда я пытаюсь получить эти данные, нажимая ссылку на представление, я получаю сообщение 404 Not Found in Firebug. Есть ли кто-нибудь, кто знает возможную причину, по которой это могло происходить? Мои фрагменты кода того, как я генерирую путь, приведены ниже:

    private void get_info()
    {
        var serviceUri = new Uri("/getcountrydata/" + country_name + "/" + arms[0].Name + "/" + arms[1].Name + "/" + arms[2].Name + "/" + arms[3].Name, UriKind.Relative);
        var webClient = new WebClient();
        webClient.OpenReadCompleted += openReadCompleted;
        webClient.OpenReadAsync(serviceUri);
    }

Маршрутизация global.asax ниже:

routes.MapRoute(
           "getcountrydata",
           "getcountrydata/{country}/{indicator1}/{indicator2}/{indicator3}/{indicator4}",
           new { controller = "Home", action = "getcountrydata" }
       );

Метод getcountrydata выглядит следующим образом:

public JsonResult getcountrydata(string country, string indicator1, string indicator2, string indicator3, string indicator4)
    {

       LegoData legoData = captainClimateRepostory.GetLegoData(country, indicator1, indicator2, indicator3, indicator4);

       DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(LegoData));
       MemoryStream ms = new MemoryStream();
       ser.WriteObject(ms, legoData);

       return Json(ms.ToArray(), JsonRequestBehavior.AllowGet);


    }

I have been getting the «ERROR 404.3 Not Found» for JSON file that I am calling using AJAX call on «Internet Information Services 7.5» even after I have activated all the «Application Development Features». Other than JSON file, all other files are getting loaded.

I am running an HTML page on IIS server on my local machine.

If I open the file directly then there is no problem at all. When I host the files on an online server it works fine.

Any quick help will be much appreciated.

asked Apr 11, 2013 at 8:43

Nitin Suri's user avatar

Nitin SuriNitin Suri

9501 gold badge8 silver badges19 bronze badges

As suggested by @ancajic i put the below code after connectionString tag in my web.config file and it worked.

  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
  </system.webServer>

answered Apr 15, 2014 at 18:13

Himanshu's user avatar

HimanshuHimanshu

2,1614 gold badges19 silver badges24 bronze badges

2

As said by @elasticman, it is necessary to open IIS Manager -> Mime types -> Add a new mime type with

Extension: .json
MIME Type: application/json

But for me that still wasn’t enough. I have an ASP.NET MVC 4 application, and I had to modify my root Web.config file.

Insert

<staticContent>
  <mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>

somewhere inside your

<system.webServer>
    ...
</system.webServer>

answered Apr 4, 2014 at 15:50

AndroC's user avatar

AndroCAndroC

4,6981 gold badge44 silver badges67 bronze badges

Is the file you try to receive in the same domain? Or do you fetch the json from another server? If it is hosted on a different domain, you’ll have to use JSONP due to same origin policy.

answered Apr 11, 2013 at 8:55

elasticman's user avatar

elasticmanelasticman

6418 silver badges19 bronze badges

3

Option 1

  1. Go to IIs

  2. Select Website

  3. Double Click Mime Type Icon Under IIs

  4. Click Add Link in right hand side

  5. File Name Extension = .json
    Mime Type = application/json

  6. Click Ok.

Option 2

Update your web.config file like this

<system.webServer>
    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
</system.webServer>

I hope your problem is resolved

answered Dec 28, 2017 at 5:19

Udara Kasun's user avatar

Udara KasunUdara Kasun

2,14316 silver badges25 bronze badges

If you are using IIS Express with Visual Studio, IIS Manager won’t work for IIS Express. Instead, you need to open this config file from %userprofile%documentsIISExpressconfigapplicationhost.config and insert

<staticContent>
  <mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>

along with all other pre-defined mime types.

answered Mar 19, 2015 at 22:56

xqzh76's user avatar

xqzh76xqzh76

911 silver badge2 bronze badges

I’ve applied the following settings on the IIS was right.


1.Open IIS Manager

2.Display properties for the IIS Server

3.Click MIME Types and then add the JSON extension:

File name extension: .json

MIME type: application/json

4.Go back to the properties for IIS Server

5.Click on Handler Mappings

Add a script map

Request path: *.json

Executable: C:WINDOWSsystem32inetsrvasp.dll
Name: JSON

answered Sep 22, 2014 at 5:19

RasoolLotfi's user avatar

RasoolLotfiRasoolLotfi

2863 silver badges6 bronze badges

I haven’t the same problem but for me (Windows Server 2003 IIS 6) the MIME type application/json not work. I use text/plain and work perfect (You not need restart the server)

answered Jul 22, 2016 at 8:48

Antonio Garcia Marin's user avatar

To solve this problem with an Azure App Service:

Use FTP or the Kudu dashboard to add this file one level above wwwroot—

/site/applicationHost.xdt:

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json" xdt:Transform="InsertBefore(/configuration/system.webServer/staticContent/*[1])" />
    </staticContent>
  </system.webServer>
</configuration>

Then, under Application settings in the Azure Portal, add a Handler mapping:

.json      C:WINDOWSsystem32inetsrvasp.dll

answered Apr 21, 2017 at 20:07

BadHeuristics's user avatar

  1. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    При попытке отправить тестовое сообщение появялется ошибка.
    на 1 сайте
    Произошла ошибка при получении данных JSON: код состояния HTTP 500. error
    на 2 сайте
    Ошибка
    При обработке следующих JSON-данных произошла ошибка разбора:
    <br /> <b>Warning</b>: escapeshellcmd() has been disabled for security reasons in <b>/home/*/domains/esial.ru/public_html/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php</b> on line <b>1444</b><br /> <br /> <b>Warning</b>: escapeshellcmd() has been disabled for security reasons in <b>/home/*/domains/esial.ru/public_html/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php</b> on line <b>1444</b><br /> {«success»:true,»message»:null,»messages»:{«notice»:[«u041du0435 u0443u0434u0430u043bu043eu0441u044c u0432u044bu0437u0432u0430u0442u044c u0444u0443u043du043au0446u0438u044e mail.»],»error»:[«u041du0435 u0443u0434u0430u043bu043eu0441u044c u043eu0442u043fu0440u0430u0432u0438u0442u044c u0442u0435u0441u0442u043eu0432u043eu0435 u0441u043eu043eu0431u0449u0435u043du0438u0435.»]},»data»:false}

    Хостинг 1. Php error включено на обоих сайтах.

  2. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Аналогично- к хостеру . Или смотри в настройках панели хостинга, может есть опции включения функций PHP

  3. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    опции есть ) многооо… во когда выделил в чем проблемма стало понятно ) включил
    Escapeshellcmd, Escapeshellarg включен!
    Разрешить/Запретить функцию escapeshellcmd, escapeshellarg — Функция escapeshellarg() добавляет одинарные кавычке вокруг строки и добавляет кавычки/экранирует любые существующие одинарные кавычки.

    на 1 сайте ошибка осталась. на втором теперь не удалось отправить сообщение.. Год в админку не залазил ) щас буду дальше со вторым копать…

    Произошла ошибка при получении данных JSON: код состояния HTTP 500. error

  4. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Можешь проверить отправку писем без Джумла. Создай файл в корне сайта с кодом и запусти

    1. if ( mail(«master@fggf.ru», «Тема письма» , » Привет от сайта»)) {
    2.   echo «Email has been sent .<br>»;
    3.   echo  «Failed sending message <br>»;

    Последнее редактирование: 03.12.2020

  5. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    Parse error: syntax error, unexpected ‘,’ in /home/flat/domains/esial.ru/public_html/1.php on line 2

  6. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Исправил, впиши свой эмэйл вместо master@fggf.ru

    1. if ( mail(«master@fggf.ru», «Тема письма» , » Привет от сайта»)) {
    2.  echo «Email has been sent .<br>»;
    3.  echo  «Failed sending message <br>»;
  7. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    Неудачная отправка сообщения

    Значит проблемма с хостингом.
    спасибо за помощь

  8. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Ну если ты давно не занимался сайтами, то наверно хостер и отключил отправку писем, чтобы не спамили.
    Советую проверить сайты на вирус/шелл и обновить до актуальных версий Джумла и расширения .

  9. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    На втором сайте заработало.
    на первом так и выдает ошибку Произошла ошибка при получении данных JSON: код состояния HTTP 500. error

    при попытке обновления выдает Class ‘AdmintoolsHelperDownload’ not found

  10. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Включи в админке показ ошибок Джумла на уровень для разработчиков и проверь включение POST на хостинге

  11. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    По Post включения нет. Есть
    Post_max_size
    Устанавливает максимально допустимый размер данных, отправляемых методом POST.
    Max_input_time
    Эта директива задает максимальное время в секундах, в течение которого скрипт должен разобрать все входные данные, переданные запросами вроде POST или GET.

    включил для разработчиков добавилось
    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_allvideos has a deprecated constructor in /home/flat/domains/eseal.ru/public_html/plugins/content/jw_allvideos/jw_allvideos.php on line 18

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /home/flat/domains/eseal.ru/public_html/plugins/content/jcomments/jcomments.php on line 25

    но это как я понимаю к делу не относится.

    С низу где раздел запросы к базе данных
    6 повторяющийся запрос!
    3 повторов: #4 #8 #31
    3 повторов: #5 #9 #32

    гдето красным в запросах индекс не ипользуется.

  12. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Это вопрос к хостеру, может быть запрет на передачу данных, отправляемых методом POST.

  13. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    нав втором сайте, на этом же хостинге, и даже на том же аккаунте все настроилось )

  14. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Перезалей файлы /administrator and /libraries Джумла той же версии.

  15. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    спасибо. помогло . все работает

  16. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Но задуматься нужно , почему файлы были испорчены , . И вероятнее всего это взлом .

  17. Offline

    Flat

    Недавно здесь

    Регистрация:
    03.12.2020
    Сообщения:
    12
    Симпатии:
    0
    Пол:
    Мужской

    спам шел с него. Скорее всего взлом. все обновил, пароли сменил.

Поделиться этой страницей


Форумы Joomla! CMS

Stay organized with collections

Save and categorize content based on your preferences.

The following document provides reference information about the status codes
and error messages that are used in the Cloud Storage JSON API. For
the page specific to the Cloud Storage XML API, see
HTTP status and error codes for XML.

Error Response Format

Cloud Storage uses the standard HTTP error reporting format for the
JSON API. Successful requests return HTTP status codes in the 2xx range. Failed
requests return status codes in the 4xx and 5xx ranges. Requests that require a
redirect returns status codes in the 3xx range. Error responses usually include
a JSON document in the response body, which contains information about the
error.

The following examples show some common errors. Note that the header
information in the responses is omitted.

The following is an example of an error response you receive if you try to
list the buckets for a project but do not provide an authorization header.

401 Unauthorized

{
"error": {
 "errors": [
  {
   "domain": "global",
   "reason": "required",
   "message": "Login Required",
   "locationType": "header",
   "location": "Authorization"
  }
 ],
 "code": 401,
 "message": "Login Required"
 }
}

403 Forbidden

This is an example of an error response you receive if you try to list the
buckets of a non-existent project or one in which you don’t have permission
to list buckets.

403 Forbidden

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "forbidden",
    "message": "Forbidden"
    }
  ],
  "code": 403,
  "message": "Forbidden"
 }
}

404 Not Found

The following is an example of an error response you receive if you try to
retrieve an object that does not exist.

404 Not Found

{
"error": {
 "errors": [
  {
   "domain": "global",
   "reason": "notFound",
   "message": "Not Found"
  }
 ],
 "code": 404,
 "message": "Not Found"
 }
}

409 Conflict

The following is an example of an error response you receive if you try to
create a bucket using the name of a bucket you already own.

409 Conflict

{
"error": {
 "errors": [
  {
   "domain": "global",
   "reason": "conflict",
   "message": "You already own this bucket. Please select another name."
  }
 ],
 "code": 409,
 "message": "You already own this bucket. Please select another name."
 }
}

The following table describes the elements that can appear in the response body
of an error. Fields should be used together to help determine the problem.
Also, the example values given below are meant for illustration and are not an
exhaustive list of all possible values.

Element Description
code An HTTP status code value, without the textual description.

Example values include: 400 (Bad Request), 401 (Unauthorized), and 404 (Not Found).

error A container for the error information.
errors A container for the error details.
errors.domain The scope of the error. Example values include: global and push.
errors.location The specific item within the locationType that caused the error. For example, if you specify an invalid value for a parameter, the location will be the name of the parameter.

Example values include: Authorization, project, and projection.

errors.locationType The location or part of the request that caused the error. Use with location to pinpoint the error. For example, if you specify an invalid value for a parameter, the locationType will be parameter and the location will be the name of the parameter.

Example values include header and parameter.

errors.message Description of the error.

Example values include Invalid argument, Login required, and Required parameter: project.

errors.reason Example values include invalid, invalidParameter, and required.
message Description of the error. Same as errors.message.

HTTP Status and Error Codes

This section provides a non-exhaustive list of HTTP status and error codes that
the Cloud Storage JSON API uses. The 1xx Informational and 2xx
Success codes are not discussed here. For more information, see Response Status
Codes in RFC 7231 §6, RFC 7232 §4,
RFC 7233 §4, RFC 7235 §3, and RFC 6585.

302—Found

Reason Description
found Resource temporarily located elsewhere according to the Location header.

303—See Other

Reason Description
mediaDownloadRedirect When requesting a download using alt=media URL parameter, the direct URL path to use is prefixed by /download. If this is omitted, the service will issue this redirect with the appropriate media download path in the Location header.

304—Not Modified

Reason Description
notModified The conditional request would have been successful, but the condition was false, so no body was sent.

307—Temporary Redirect

Reason Description
temporaryRedirect Resource temporarily located elsewhere according to the Location header. Among other reasons, this can occur when cookie-based authentication is being used, e.g., when using the Storage Browser, and it receives a request to download content.

308—Resume Incomplete

Description
Indicates an incomplete resumable upload and provides the range of bytes already received by Cloud Storage. Responses with this status do not contain a body.

400—Bad Request

[Domain.]Reason Description
badRequest The request cannot be completed based on your current Cloud Storage settings. For example, you cannot lock a retention policy if the requested bucket doesn’t have a retention policy, and you cannot set ACLs if the requested bucket has uniform bucket-level access enabled.
badRequestException The retention period on a locked bucket cannot be reduced.
cloudKmsBadKey Bad Cloud KMS key.
cloudKmsCannotChangeKeyName Cloud KMS key name cannot be changed.
cloudKmsDecryptionKeyNotFound Resource’s Cloud KMS decryption key not found.
cloudKmsDisabledKey Cloud KMS key is disabled, destroyed, or scheduled to be destroyed.
cloudKmsEncryptionKeyNotFound Cloud KMS encryption key not found.
cloudKmsKeyLocationNotAllowed Cloud KMS key location not allowed.
corsRequestWithXOrigin CORS request contains an XD3 X-Origin header.
customerEncryptionAlgorithmIsInvalid Missing an encryption algorithm, or the provided algorithm is not «AE256.»
customerEncryptionKeyFormatIsInvalid Missing an encryption key, or it is not Base64 encoded, or it does not meet the required length of the encryption algorithm.
customerEncryptionKeyIsIncorrect The provided encryption key is incorrect.
customerEncryptionKeySha256IsInvalid Missing a SHA256 hash of the encryption key, or it is not Base64 encoded, or it does not match the encryption key.
invalidAltValue The value for the alt URL parameter was not recognized.
invalidArgument The value for one of fields in the request body was invalid.
invalidParameter The value for one of the URL parameters was invalid. In addition to normal URL parameter validation, any URL parameters that have a corresponding value in provided JSON request bodies must match if they are both specified. If using JSONP, you will get this error if you provide an alt parameter that is not json.
notDownload Uploads or normal API request was sent to a /download/* path. Use the same path, but without the /download prefix.
notUpload Downloads or normal API request was sent to a /upload/* path. Use the same path, but without the /upload prefix.
parseError Could not parse the body of the request according to the provided Content-Type.
push.channelIdInvalid Channel id must match the following regular expression: [A-Za-z0-9\-_\+/=]+
push.channelIdNotUnique storage.objects.watchAll‘s id property must be unique across channels.
push.webhookUrlNoHostOrAddress storage.objects.watchAll‘s address property must contain a valid URL.
push.webhookUrlNotHttps storage.objects.watchAll‘s address property must be an HTTPS URL.
required A required URL parameter or required request body JSON property is missing.
resourceIsEncryptedWithCustomerEncryptionKey The resource is encrypted with a customer-supplied encryption key, but the request did not provide one.
resourceNotEncryptedWithCustomerEncryptionKey The resource is not encrypted with a customer-supplied encryption key, but the request provided one.
turnedDown A request was made to an API version that has been turned down. Clients will need to update to a supported version.
userProjectInvalid The user project specified in the request is invalid, either because it is a malformed project id or because it refers to a non-existent project.
userProjectMissing The requested bucket has Requester Pays enabled, the requester is not an owner of the bucket, and no user project was present in the request.
wrongUrlForUpload storage.objects.insert must be invoked as an upload rather than a metadata.

401—Unauthorized

[Domain.]Reason Description
AuthenticationRequiredRequesterPays Access to a Requester Pays bucket requires authentication.
authError This error indicates a problem with the authorization provided in the request to Cloud Storage. The following are some situations where that will occur:

  • The OAuth access token has expired and needs to be refreshed. This can be avoided by refreshing the access token early, but code can also catch this error, refresh the token and retry automatically.
  • Multiple non-matching authorizations were provided; choose one mode only.
  • The OAuth access token’s bound project does not match the project associated with the provided developer key.
  • The Authorization header was of an unrecognized format or uses an unsupported credential type.
lockedDomainExpired When downloading content from a cookie-authenticated site, e.g., using the Storage Browser, the response will redirect to a temporary domain. This error will occur if access to said domain occurs after the domain expires. Issue the original request again, and receive a new redirect.
required Access to a non-public method that requires authorization was made, but none was provided in the Authorization header or through other means.

403—Forbidden

[Domain.]Reason Description
accountDisabled The account associated with the project that owns the bucket or object has been disabled. Check the Google Cloud console to see if there is a problem with billing, and if not, contact account support.
countryBlocked The Cloud Storage JSON API is restricted by law from operating with certain countries.
forbidden According to access control policy, the current user does not have access to perform the requested action. This code applies even if the resource being acted on doesn’t exist.
insufficientPermissions According to access control policy, the current user does not have access to perform the requested action. This code applies even if the resource being acted on doesn’t exist.
objectUnderActiveHold Object replacement or deletion is not allowed due to an active hold on the object.
retentionPolicyNotMet Object replacement or deletion is not allowed until the object meets the retention period set by the retention policy on the bucket.
sslRequired Requests to this API require SSL.
stopChannelCallerNotOwner Calls to storage.channels.stop require that the caller own the channel.
UserProjectAccessDenied The requester is not authorized to use the project specified in the userProject portion of the request. The requester must have the serviceusage.services.use permission for the specified project.
UserProjectAccountProblem There is a problem with the project used in the request that prevents the operation from completing successfully. One issue could be billing. Check the billing page to see if you have a past due balance or if the credit card (or other payment mechanism) on your account is expired. For project creation, see the Projects page in the Google Cloud console. For other problems, see the Resources and Support page.

404—Not Found

Reason Description
notFound Either there is no API method associated with the URL path of the request, or the request refers to one or more resources that were not found.

405—Method Not Allowed

Reason Description
methodNotAllowed The HTTP verb is not supported by the URL endpoint used in the request. This can happen, for example, when using the wrong verb with the /upload or /download URLs.

408—Request Timeout

Reason Description
uploadBrokenConnection The request timed out. Please try again using truncated exponential backoff.

409—Conflict

Reason Description
conflict A request to change a resource, usually a storage.*.update or storage.*.patch method, failed to commit the change due to a conflicting concurrent change to the same resource. The request can be retried, though care should be taken to consider the new state of the resource to avoid blind replacement of another agent’s changes.

410—Gone

Description
You have attempted to use a resumable upload session or rewrite token that is no longer available. If the reported status code was not successful and you still wish to complete the upload or rewrite, you must start a new session.

411—Length Required

Description
You must provide the Content-Length HTTP header. This error has no response body.

412—Precondition Failed

Reason Description
conditionNotMet At least one of the pre-conditions you specified did not hold.
orgPolicyConstraintFailed Request violates an OrgPolicy constraint.

413—Payload Too Large

Reason Description
uploadTooLarge This error arises if you:

  • Attempt to upload an object larger than 5 TiB.
  • Attempt a Copy request that does not complete within 30 seconds and involves an object larger than 2.5 GiB. In this case, use the Rewrite method instead.

416—Requested Range Not Satisfiable

Reason Description
requestedRangeNotSatisfiable The requested Range cannot be satisfied.

429—Too Many Requests

[Domain.]Reason Description
usageLimits.rateLimitExceeded A Cloud Storage JSON API usage limit was exceeded. If your application tries to use more than its limit, additional requests will fail. Throttle your client’s requests, and/or use truncated exponential backoff.

499—Client Closed Request

Description
The resumable upload was cancelled at the client’s request prior to completion. This error has no response body.

500—Internal Server Error

Reason Description
backendError We encountered an internal error. Please try again using truncated exponential backoff.
internalError We encountered an internal error. Please try again using truncated exponential backoff.

502—Bad Gateway

This error is generated when there was difficulty reaching an internal service.
It is not formatted with a JSON document. Please try again using
truncated exponential backoff.

503—Service Unavailable

Reason Description
backendError We encountered an internal error. Please try again using truncated exponential backoff.

504—Gateway Timeout

This error is generated when there was difficulty reaching an internal service.
It is not formatted with a JSON document. Please try again using
truncated exponential backoff.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-01-27 UTC.

I’ve tried recompiling with the above patch, but the error still persists. Is there any way to find out if I screwed up the compilation somehow or if the issue still persists?

ERROR: [vk] Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: ‘Not Found’>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py», line 640, in extract
ie_result = self._real_extract(url)
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/vk.py», line 328, in _real_extract
payload = self._download_payload(‘al_video’, video_id, data)
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/vk.py», line 55, in _download_payload
code, payload = self._download_json(
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py», line 1002, in download_content
res = getattr(self, download_handle.name)(url_or_request, video_id, **kwargs)
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py», line 966, in download_handle
res = self._download_webpage_handle(
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py», line 834, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py», line 791, in _request_webpage
raise ExtractorError(errmsg, cause=err)

File «/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py», line 773, in _request_webpage
return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
File «/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py», line 3596, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File «/usr/lib/python3.10/urllib/request.py», line 525, in open
response = meth(req, response)
File «/usr/lib/python3.10/urllib/request.py», line 634, in http_response
response = self.parent.error(
File «/usr/lib/python3.10/urllib/request.py», line 563, in error
return self._call_chain(*args)
File «/usr/lib/python3.10/urllib/request.py», line 496, in _call_chain
result = func(*args)
File «/usr/lib/python3.10/urllib/request.py», line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Всем привет!

столкнулся с такой проблемой

есть домен 1с.domain.ru
он ссылается на nginx
там настроен proxy_pass на http://1с.domain.ru/DEMO/ru_RU (Это публикация 1С)

при переходе на 1c.domain.ru открывается интерфейс 1С ки
но вконсоли разработчика куча ошибок о том что файлы стилей,png.json не могут загрузиться по причине того что 404 (not found)

и в целом я знаю почему…

все потому что эти файлы пытаются загрузиться по адресу http://1с.domain.ru/DEMO/ru_RU который с внешки не доступен. (приложил скриншотик)

вопрос…как это можно побороть?
Варинт проксировать просто на 1с,domain.ru не подходит так как в таком случает будут доступны остальные базы опубликованные на этом IIS.


sbrain, ну Вы хоть конфиги приложите сюда…
мы ведь пока не телепаты — читать чужих мыслей еще не научились :)


sbrain, ну Вы хоть конфиги приложите сюда…
мы ведь пока не телепаты — читать чужих мыслей еще не научились :)

простите простите=))

server {
        listen 80;
#       listen 443;
        server_name demo.domain.org;
        root /var/www/html;

location / {
        proxy_pass http://demo.domain.org/DEMO/ru_RU/;
        proxy_read_timeout 60s;
        proxy_send_timeout 60s;
        proxy_connect_timeout 60s;

        client_max_body_size 10024M;
}

        error_page  500 502 503 504  /50x.html;
        location = /50x.html {
        root  /usr/share/nginx/html;

}
}


и в целом я знаю почему…

Совершенно верно, также верно то, что так не делается. Разобраться в вашей путанице с доменными именами практически нереально, но это половина беды.

Открываем и читаем документацию https://nginx.org/ru/docs/http/ngx_http_proxy_module.html

Если директива proxy_pass указана с URI, то при передаче запроса серверу часть нормализованного URI запроса, соответствующая location, заменяется на URI, указанный в директиве:

Т.е. вы принудительно меняете часть URL запроса и потом удивляетесь что получается 404.

вопрос…как это можно побороть?

Наверное можно, но для этого надо для каждого такого случая проанализировать исходный URL, а затем тот, который у вас получится в ходе проксирования, сделать выводы и внести нужные изменения в конфигурацию.

Проще поднять еще один веб-сервер и опубликовать там только нужную базу. Можно сделать это на виртуалке или даже в контейнере.


  • Записки IT специалиста — Форум

  • Сайтостроение

  • Веб-сервера

  • nginx не загружаются JSON 404(not found)

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Произошла ошибка при распаковке unarc dll вернул код ошибки 12 crc check
  • Произошла ошибка при поиске учетной записи майкрософт