Ошибка не удалось завершить операцию webkitblobresource 1 safari

Невозможно загрузить PDF в браузере Safari на iphone или ipad pro ios12

В моем веб-приложении есть функция загрузки PDF-файлов. Он отлично работает со всеми браузерами и iOS11, но не работает в браузере Safari и ios12 на мобильных устройствах или iod pro. Я получаю ошибку ниже — Ошибка WebKitBlobResource 1

1 ответ

Когда мы открываем pdf на новой вкладке url, файл не существует, а его единственный кеш хранится внутри браузера. Поэтому, когда мы генерируем большой двоичный объект и перенаправляем на текущую вкладку, чтобы указать на сгенерированный URL-адрес большого двоичного объекта, мы теряем кеш. Так что открытие URL-адреса в новом окне помогает.

В моем приложении Angular есть возможность загрузки в формате PDF. Когда я запускаю свое приложение в браузере Safari Iphone (IOS 12), я получаю следующее сообщение об ошибке, как показано на рисунке.

Как я могу это решить?

ios_safari_issue

Эй, ты нашел решение?

@RezaRahmati Еще нет

ты нашел решение?

Формы c голосовым вводом в React с помощью Speechly

Flatpickr: простой модуль календаря для вашего приложения на React

Что такое cURL в PHP? Встроенные функции и пример GET запроса

Ответы 1

Если вы внедряете тег ancor в DOM программно в качестве своего решения, убедитесь, что вы не проясняете это слишком рано.

Для меня 100 мс работали нормально, но, поскольку они невидимы в любом случае, я выбрал 1-секундную задержку при очистке DOM.

как насчет открытия этого файла для загрузки / новой вкладки? а.цель = «_blank»; кажется, сломал его и a.download = title; не работает на иос

Здесь это не так, поскольку фактическая загрузка происходит через запрос API и как объект Blob. Например, если пользователь должен быть авторизован с помощью токена доступа.

IPhone Safari «Не удается открыть страницу» или ошибка «Не удалось завершить операцию. Protocol error»

Safari – мобильный интернет браузер, программа, приложение для просмотри web-страниц, чаще всего используется как стандартное приложение в устройствах Apple. И ошибку, которую мы сегодня рассматриваем, часто замечают пользователи IPhone и IPad. Поэтому предлагаю рассмотреть причины появления такой ошибки в вэб-браузере Сафари, а также способы ее устранения.

Ошибка в браузере Safari IPhone Не удается открыть страницу или не удалось завершить операцию. Protocol error

Ошибка в браузере Safari IPhone Не удается открыть страницу или не удалось завершить операцию. Protocol error

Причины, почему Safari не удается открыть страницу или ошибка «Не удалось завершить операцию. Protocol error»

  1. Web-страница временно недоступна
  2. Нет подключения к интернет соединению
  3. Неверный адрес Web-страницы
  4. Устаревшая версия приложения, обновите или установите новый браузер из App Store
  5. Браузер Safari настроен неверно
  6. Разработчик Web-сайта запретил допуск или не добавил разрешение к допуску для открывания в этой программе.

Если у вас телефон перестал реагировать на зарядку или заряжается не полностью, читайте статью…

Способы решения появления ошибки

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

Не знаете что делать если в вашем Айфоне закончилось свободная память? Статья в помощь…

Действенные методы решения

  1. Остановка JavaScript. В некоторых версиях операционной системы IOS есть ошибка, благодаря чему обозреватель Safari ограничивает допуск к некоторым сайтам. Чтобы решить такую проблему достаточно просто остановить джава скрипт. Открываем меню Настройки => Safari => Дополнения и переводим бегунок JavaScript в пассивное положение. После того, как вы получите возможность входа на необходимый сайт, следует проделать те же действия по включению ДжаваСкрипта обратно.
  2. Обнуление настроек Safari. Страницы web-сайта могут не отображаться из-за ошибки внутри приложения Сафари. Поэтому открываем меню Настройки => Safari => Очистить историю и данные сайтов.
  3. Отключение блокировки рекламы. В некоторых случаях юзеры IPhone юзают различные блокираторы рекламы. Бывает так, что именно из-за этих приложений не открываются необходимые сайты. Для того, чтобы отключить такой блокиратор, необходимо просто зажать кнопку обновление страницы в браузере Сафари и в открывшемся окне следует нажать пункт Перезагрузить без блокировки контента.

Заключение

Надеюсь, приведенные способы решения проблемы помогли вам справиться с ошибкой «Не удается открыть страницу» или ошибка «Не удалось завершить операцию. Protocol error» на мобильных устройствах IPhone и IPad. Пишите результаты в комментариях; если проблема не решается, будем бороться с ней вместе!

My Angular application has a pdf download option. When i run my application in Iphone(IOS 12) Safari browser I get the following error message as shown in the image

How can i resolve it?

ios_safari_issue

shizhen's user avatar

shizhen

12.2k9 gold badges52 silver badges88 bronze badges

asked Jan 24, 2019 at 4:57

Saikrishna SB's user avatar

3

If you are injecting an ancor tag into DOM programmatically as your solution, make sure you do not clear that up too soon.

For me 100ms worked fine but since it’s invisible either way I chose 1 second delay on clearing DOM up.

Example code:

this.fileApi.download(<your args>).subscribe((data: Blob) => {
    const url = window.URL.createObjectURL(data);
    const a = document.createElement('a');
    a.style.display = 'none';
    a.href = url;

    // the filename you want
    a.download = <your filename>;
    document.body.appendChild(a);
    a.click();

    setTimeout(() => {
      window.URL.revokeObjectURL(url);
      document.body.removeChild(a);
    }, 1000);
  })

answered Feb 3, 2020 at 12:19

Raimo Johanson's user avatar

3

Are you trying to browse the internet using Safari, but are you getting the error message ‘webkitblobresource error 1’?

Safari is a web browser that was developed by Apple Inc. It was released on January 7, 2003 for Mac OS X and it has been available on various other operating systems such as iOS, Android, Windows and Linux.

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

On this page, you will find more information about the most common causes and most relevant solutions for the Safari error ‘webkitblobresource error 1’. Do you need help straight away? Visit our support page.

Error information

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

Verified solution

The default homepage of Safari is your browser’s home page or your personal website. You can set up different pages as your homepage in Safari. However, if you encounter a Safari error that says WebKitBlobResource then you might have a problem with the page that you are trying to visit. This error can occur when you try to visit certain websites or when you try to download a specific file from the internet.

The problem can be caused by an issue with your computer or it can be caused by a virus or malware on your computer. Sometimes, problems with the internet connection of your computer can prevent you from accessing certain websites properly. To fix this error, you need to try a few solutions.

You might be getting the WebKitBlobResource Error 1 code when you are trying to download a PDF file from the internet. If this is the case, first of all, consider bugs and glitches that can occur with PDF files. Try downloading a different PDF file from the internet and check if the problem persists. Bugs and glitches can also be Safari’s problem. This means that the problem is on the developer’s side and not on your side.

The developers might have a bug in their software that can prevent you from accessing certain websites or PDF files properly. So, you need to wait for the developers to fix this bug. This might take a few days or weeks, depending on the time that the developers take to fix this bug. You can try downloading the file again and check if the problem persists.

Another possible solution is to download the PDF file directly from the original website. Some websites might be protected behind a log-in or password system. Strange download links can be the result of these log-in systems. So, try downloading the PDF file directly from the original website and check if the problem persists.

If you are still encountering the WebKitBlobResource Error 1, you might need to clear your browser’s cache. You can also try reinstalling Safari. If this does not work, then you need to contact the support team. You can contact them through email or by calling them.

Need more help?

Do you need more help?

Tech experts are ready to answer your questions.

Ask a question

Apple Footer

  • This site contains user submitted content, comments and opinions and is for informational purposes
    only. Apple may provide or recommend responses as a possible solution based on the information
    provided; every potential issue may involve several factors not detailed in the conversations
    captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of
    any proposed solutions on the community forums. Apple disclaims any and all liability for the acts,
    omissions and conduct of any third parties in connection with or related to your use of the site.
    All postings and use of the content on this site are subject to the
    Apple Support Community Terms of Use.
    See how your data is managed…

Copyright ©
Apple Inc. All rights reserved.

This issue was moved to a discussion.

You can continue the conversation there.

Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

  • Ошибка не удалось добавить копию ввода коллекции типа binding 443
  • Ошибка не удалось вычислить индекс производительности windows
  • Ошибка не удалось выполнить транзакцию google play
  • Ошибка не удалось выполнить ставку проверка событий не прошла 1хставка
  • Ошибка не удалось выполнить проверку на вирусы яндекс браузер