question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ticketmaster webpage third-party content causing NSURLErrorDomain -1002

See original GitHub issue

Bug description: Some sites have content that does not follow proper web standards and are causing our component to fail hard. There needs to be a way to let these errors fail silently so the entire page doesn’t crash.

I have Allow Arbitrary Loads & NSAllowsArbitraryLoadsInWebContent enabled in our Info.plist file

<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
		<key>NSAllowsArbitraryLoadsInWebContent</key>
		<true/>
	</dict>

I also have set mixedContentMode="always"

To Reproduce: Loading any Ticketmaster.com ticketing page will initially load and as secondary content (JS, images, etc…) loads an error will be thrown. For ex: https://www1.ticketmaster.com/billy-joel-billys-70th-birthday-new-york-new-york-05-09-2019/event/3B00554F06438807

The URL will throw a NSURLErrorDomain with error code: -1002 (unsupported URL)

Expected behavior: Webview does not throw error on webpage content or secondary url requests, should be able to fail gracefully on nested content instead of a hard failure.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

2reactions
asrytiscommented, Aug 2, 2019

No need to patch the native code. Here’s how to solve it:

<WebView originWhitelist={['http://', 'https://']} ... />

Update 02/08/2019: This is actually the default value of originWhitelist so you can omit it.

1reaction
Titozzzcommented, Aug 2, 2019

Can I close this ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Third-Party Resale Tickets: Everything You Need to Know
Once the seller transfers your tickets, you'll receive an email from the original ticket provider and/or Ticketmaster. This email will notify ...
Read more >
Purchase Policy - Ticketmaster Fan Support
We generally sell tickets on behalf of the Event Organizer, though, in some rare instances, we may own a small number of tickets...
Read more >
Terms of Use - Ticketmaster Fan Support
Submit (a) any content or information that is unlawful, fraudulent, libelous, defamatory, or otherwise objectionable, or infringes our or any ...
Read more >
Ticketmaster Privacy Policy
We will share information with third parties who sell products or services to you. We will disclose your information to a ticket buyer...
Read more >
General Terms of Use - The Ticketmaster Developer Portal
Ticketmaster content (event name, dates, times, venue name, and additional ... that third parties (including advertisers) may serve content and/or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found