Skip to content

Exception in SafariView on non-ASCII URLs ("unsupported scheme") #3315

@sentry-io

Description

@sentry-io

Sentry handles this especially poorly -- every individual instance of this exception seems to result in a new "issue" in Sentry, disconnected from all the previous instances.

Sentry Issue: ZULIP-MOBILE-10G

(In the URL, sequences *** are redactions.)

RCTFatalException: Exception 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported.' was throw...: Application threw exception RCTFatalException: Exception 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported.' was thrown while invoking show on target SafariViewManager with params (

        {
        url = "https://*********/user_uploads/8091/ZtZg***/***-r\U00e9\U00e9criture-V3-***.docx";
    },
    2873
)
callstack: (
	0   CoreFoundation                      0x00000001938611d0 <redacted> + 148
	1   libobjc.A.dylib                     0x000000019229855c objc_exception_throw + 56
	2   CoreFoundation                      0x0000000193861100 <redacted> + 0
	3   SafariServices                      0x00000001a1dc692c <redacted> + 488
	4   ZulipMobile                         0x000000010019b5e0 _ZN5folly6detail15str_to_integralIxEENS_8ExpectedIT_NS_14ConversionCodeEEEPNS_5RangeIPKcEE + 356548
	5   CoreFoundation                      0x0000000193867150 <redacted> + 144
	6   CoreFoundation                      0x0000000193759eac <redacted> + 284
	7   CoreFoundation                      0x000000019375e95c <redacted> + 60
	8   ZulipMobile                         0x00000001000de568 ZulipMobile + 337256
	9   ZulipMobile                         0x0000000100125318 RCTFBQuickPerformanceLoggerConfigureHooks + 117088
	10  ZulipMobile                         0x0000000100125074 RCTFBQuickPerformanceLoggerConfigureHooks + 116412
	11  libdispatch.dylib                   0x00000001926ea1fc <redacted> + 24
	12  libdispatch.dylib                   0x00000001926ea1bc <redacted> + 16
	13  libdispatch.dylib                   0x00000001926eed68 _dispatch_main_queue_callback_4CF + 1000
	14  CoreFoundation                      0x000000019380e810 <redacted> + 12
	15  CoreFoundation                      0x000000019380c3fc <redacted> + 1660
	16  CoreFoundation                      0x000000019373a2b8 CFRunLoopRunSpecific + 444
	17  GraphicsServices                    0x00000001951ee198 GSEventRunModal + 180
	18  UIKit                               0x00000001997817fc <redacted> + 684
	19  UIKit                               0x000000019977c534 UIApplicationMain + 208
	20  ZulipMobile                         0x0000000100091674 ZulipMobile + 22132
	21  libdyld.dylib                       0x000000019271d5b8 <redacted> + 4
): Exception 'The specified URL has an unsupported scheme. Only HTTP and HTTPS...
  ?, in <redacted>
  ?, in RCTFBQuickPerformanceLoggerConfigureHooks
  ?, in RCTFBQuickPerformanceLoggerConfigureHooks
  ?, in <redacted>
...
(11 additional frame(s) were not displayed)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions