stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

[🔥] No suitable URL request handler found for ph://11B72114-7060-453B-A838-554A0B952C02/L0/001

Open zfogg opened this issue 11 months ago • 16 comments

Issue

When using the <MessageInput /> component and trying to select images from the user's image gallery, the following error is produced:

No suitable URL request handler found for ph://11B72114-7060-453B-A838-554A0B952C02/L0/001

RCTHTTPRequestHandlerCls
    RCTNetworking.mm:712
RCTImageEditingManagerCls
RCTImageEditingManagerCls
7DE7EC03-CFB7-349D-9B9E-8782B38F231D
7DE7EC03-CFB7-349D-9B9E-8782B38F231D
7DE7EC03-CFB7-349D-9B9E-8782B38F231D
7DE7EC03-CFB7-349D-9B9E-8782B38F231D
7DE7EC03-CFB7-349D-9B9E-8782B38F231D
7DE7EC03-CFB7-349D-9B9E-8782B38F231D
_pthread_wqthread
start_wqthread

Steps to reproduce

Steps to reproduce the behavior:

  1. Use the default installation instructions to setup expo and stream
  2. Render a <MessageInput />
  3. Open your media gallery on iOS with ph:// files in your gallery
  4. See error pop-up. You'll also notice that ph:// files in the gallery are blank spaces instead of image previews.

Expected behavior

You should just be able to browse your media with no errors.

Project Related Information

Customization

Click To Expand

Offline support

  • [ ] I have enabled offline support.
  • [ ] The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

{
  "name": "hi-zachary",
  "version": "1.0.0",
  "main": "expo-router/entry",
  "scripts": {
    "start": "expo start",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@expo-google-fonts/dev": "^0.2.3",
    "@expo/vector-icons": "^14.0.2",
    "@op-engineering/op-sqlite": "^11.3.0",
    "@react-native-async-storage/async-storage": "1.23.1",
    "@react-native-community/netinfo": "11.4.1",
    "@stream-io/flat-list-mvcp": "^0.10.3",
    "@supabase/supabase-js": "^2.48.0",
    "expo": "^52.0.16",
    "expo-av": "^15.0.2",
    "expo-clipboard": "~7.0.1",
    "expo-constants": "~17.0.2",
    "expo-document-picker": "^13.0.2",
    "expo-file-system": "~18.0.7",
    "expo-font": "~13.0.3",
    "expo-haptics": "~14.0.1",
    "expo-image-manipulator": "~13.0.6",
    "expo-image-picker": "^16.0.4",
    "expo-linking": "~7.0.2",
    "expo-media-library": "^17.0.5",
    "expo-router": "~4.0.2",
    "expo-sharing": "^13.0.1",
    "expo-splash-screen": "~0.29.7",
    "expo-sqlite": "~15.0.6",
    "expo-status-bar": "~2.0.0",
    "expo-system-ui": "~4.0.7",
    "nativewind": "^4.1.23",
    "react": "18.3.1",
    "react-dom": "18.3.1",
    "react-native": "0.76.6",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-quick-sqlite": "^8.2.7",
    "react-native-reanimated": "^3.16.7",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~5.4.0",
    "react-native-svg": "15.8.0",
    "react-native-url-polyfill": "^2.0.0",
    "react-native-uuid": "^2.0.3",
    "react-native-web": "~0.19.6",
    "setimmediate": "^1.0.5",
    "stream-chat-expo": "^6.2.0",
    "tailwind-merge": "^2.6.0",
    "tailwindcss": "^3.4.17"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.3.12",
    "supabase": "^2.6.8",
    "typescript": "^5.7.3"
  },
  "resolutions": {
    "punycode": "1.4.1"
  },
  "private": true
}

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • [x] iOS

Additional context

here's an issue about the problem with expo: https://github.com/expo/expo/issues/29741

apparently using <Image /> from expo-image fixes it!

Screenshots

Click To Expand


zfogg avatar Jan 26 '25 22:01 zfogg

note my additional context:

here's an issue about the problem with expo: https://github.com/expo/expo/issues/29741

apparently using <Image /> from expo-image fixes it!

zfogg avatar Jan 26 '25 22:01 zfogg

Hey @zfogg, we have been testing this on expo 52 on our sample app with expo ~52.0.20, expo-media-library version 17.0.5 and expo-image-manipulator 13.0.6 and don't see any issue. Can you try out npx expo install --fix and rerun your app and see if that fixes your issue?

khushal87 avatar Jan 28 '25 11:01 khushal87

Hey @zfogg, did the above fix solve your issue?

khushal87 avatar Jan 31 '25 06:01 khushal87

Closing this issue due to a long time of inactivity and inability to reproduce it. Please feel free to reopen if you think its still reproducible after running npx expo install --fix. Thanks 😄

khushal87 avatar Feb 12 '25 12:02 khushal87

Hey, this issue still persists. I've tried running npx expo install --fix, but that's to no avail. Same exact issue as pointed out by OP.

itshenryx avatar Mar 10 '25 22:03 itshenryx

Hey @zfogg, did the above fix solve your issue?

i don't think it worked but i will test to be sure and update you.

zfogg avatar Mar 19 '25 18:03 zfogg

update: still doesn't work after npx expo install --fix and i get the same error.

looks like this: image

zfogg avatar Mar 19 '25 21:03 zfogg

@khushal87 please reopen this issue. it's causing me trouble as i develop my product and i want to get this fixed so my users won't have errors when using my app

zfogg avatar Mar 19 '25 22:03 zfogg

Hey @zfogg, I am on:

 "expo": "~52.0.38",
"expo-image-picker": "^16.0.6",
"expo-media-library": "^17.0.6",
"expo-image-manipulator": "~13.0.6",
    "expo-router": "~4.0.19",
 "react-native": "0.76.7",
"stream-chat-expo":"6.7.0"

And I couldn't reproduce this issue. Please help us with a reproducible guide so that we can try it out on our side and help you with it. Thanks 😄

khushal87 avatar Mar 21 '25 05:03 khushal87

i'll check my versions again and report back

zfogg avatar Mar 21 '25 07:03 zfogg

Also, by any chance, do you have anything on your application that we are unaware of? Old architecture? Enabled react compiler or some other customization in the SDK?

khushal87 avatar Mar 21 '25 08:03 khushal87

It this "usual" behavior on expo go?

itshenryx avatar Mar 21 '25 09:03 itshenryx

Also, by any chance, do you have anything on your application that we are unaware of? Old architecture? Enabled react compiler or some other customization in the SDK?

no i don't have any weird settings or anything like that. when i first reported this bug, i made sure to try and reproduce it from the most minimal project i could put together.

zfogg avatar Mar 21 '25 15:03 zfogg

It this "usual" behavior on expo go?

@khushal87

itshenryx avatar Mar 24 '25 14:03 itshenryx

Hey team, it would be great if someone can provide us with a reproducible repository where we can reproduce this bug because on the versions mentioned above we haven't been able to repro this bug. It would be a great help and would be easy for us to triage and fix. Thanks :)

khushal87 avatar May 06 '25 05:05 khushal87

facing this issue in expo 53.

sinameraji avatar May 09 '25 01:05 sinameraji

Hey, I was able to reproduce it today on a bare Expo Go app. On the development build, this works just fine, and I can confirm that.

On Expo 53, you would ideally get the warning, which means you will have to create a development build to use the media library, and Expo Go will not work due to the change of permissions around Android policies.

Due to changes in Android's permission requirements, Expo Go can no longer provide full access to the media library. To test the full functionality of this module, you can create a development build. https://docs.expo.dev/develop/development-builds/create-a-build

I will close this issue because the expo team itself complains about it. Once they fix it, it should be fixed automatically for us as well.

khushal87 avatar Jun 26 '25 12:06 khushal87