Capacitor Share ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL TypeError: Failed to execute - ionic-framework

I'm working with Ionic 6 and Capacitor, and i'm using the default Capacitor Share API, but when using it i get this error.
ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL
TypeError: Failed to execute 'share' on 'Navigator': Invalid URL
Does anyone know if this is an API bug or a uncompatibility issue with my browser?
I'm on Microsoft Edge; Version 109.0.1518.61.

Related

Uncaught DOMException: Failed to execute 'postMessage' on 'Window'

I have used cashfree for payment Integration. When I run the flutter web and click the pay button I get this error
Uncaught DOMException: Failed to execute 'postMessage' on 'Window': bpv(a){var s,r=this,q=A.bpc
if(!A.q6(r))if(!(r===t.ub))s=!1
else s=!0
else s=!0
if(s)q=A.bou
else if(r===t.K)q=...<omitted>...)} could not be cloned.
at Cashfree.s.onload (https://sdk.cashfree.com/js/flutter/1.0.26/dropinClient.prod.js:1:3542)
Please update your SDK from version 0.0.2(Beta version) to the latest version. Reach out to care#cashfree.com if you have any issues while doing the integration in future.

ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence vendor-es2015.js:43770

I'm developing my Ionic/Angular app, and I'm running into the following error when I try to log in through back-end login api. Any ideas as to why? I googled it, but I could find any relevant info, the issue still remains. What causes this error?
vendor-es2015.js:43770 ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence
at resolvePromise (polyfills-es2015.js:4147)
at resolvePromise (polyfills-es2015.js:4104)
at polyfills-es2015.js:4208
at ZoneDelegate.invokeTask (polyfills-es2015.js:3741)
at Object.onInvokeTask (vendor-es2015.js:73623)
at ZoneDelegate.invokeTask (polyfills-es2015.js:3740)
at Zone.runTask (polyfills-es2015.js:3518)
at drainMicroTaskQueue (polyfills-es2015.js:3909)
at ZoneTask.invokeTask [as invoke] (polyfills-es2015.js:3819)
at invokeTask (polyfills-es2015.js:4953)
Finally, I found the cause of the issue. It's due to an error code returned by a back-end api call. After getting rid of the error code, the login functions well.

ERROR TypeError: Object(...) is not a function at WebIntent.get [as ACTION_VIEW]

I am trying to integrate Google pay into my app using web intent plugin. After I completed the install I got the following error:
ERROR TypeError: Object(...) is not a function at WebIntent.get [as
ACTION_VIEW]
Click here for my error

Not able to view PDF on mobile using pdf js

I can view a PDF in the browser using ionic serve, but I am not able to view the PDF on a device. I am testing on Android.
This is the error I'm getting:
polyfills.js:3 Fetch API cannot load file:///android_asset/www/assets/imgs/11.pdf. URL scheme “file” is not supported.
(anonymous) # polyfills.js:3
vendor.js:1 ERROR Error: Uncaught (in promise): TypeError: Failed to fetch
TypeError: Failed to fetch
at polyfills.js:3
at Generator._invoke (0.js:1)
at Generator.t.(anonymous function) [as next]
(file:///android_asset/www/build/0.js:1:278295)
vendor.js:1 ERROR Error: Uncaught (in promise): DataCloneError: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
Error: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
at o.postMessage (0.js:1)
Thanks in advance.

Uncaught CURLEXCEPTION in facebook login - php sdk

Sometimes, especially, when I am not logged in Facebook, an error shows in my login page with the code pasted from the php-sdk. You can see the output at http://jnfp.tk/login.php. When I refresh the page, sometimes the error goes and the correct output shows but sometimes, the following error shows up :-
Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:cf01:face:b00c:0:4: Network is unreachable thrown in /home/vhosts/www.jnfp.tk/src/base_facebook.php on line 977.
Please tell me how to fix it...