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

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.

Related

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

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.

Unhandled Exception: [firebase_storage/unknown] An unknown error occurred, please check the server response

i am currently facing the issue below. the problem started occurring when i deleted my iOS folder and created a new one. ive set all the necessary settings back in place but am still facing the issue. i deleted the iOS file and recreated it as my 'project.pbxproj' file became empty. tia
[VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: [firebase_storage/unknown] An unknown error occurred, please check the server response.
It seems there is a problem in firebase_storage. Please use putData instead of putFile, that can work.
https://github.com/firebase/flutterfire/issues/9480

Using msal_mobile with Flutter

When runing the MsalMobile example i have this error :
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Instance of 'MsalMobileException'
Help me please
This question is incomplete. You need to identity the exact error causing the exception. Try catch will help you do that, check out the official docs for error handling here

HTTP error 500 when trying to go to localhost/phpmyadmin on centos 8

when I'm trying to go to localhost/phpmyadmin then I'm getting HTTP error 500.i have installed PHP, PHP-MySQL, MySQL,apache...please help me to solve this problem.
Check your log
if you have this error
PHP Fatal error: Uncaught Error: Call to a member function getCookie() on null in /usr/share/phpmyadmin/libraries/classes/Url.php:217
Try to install php-json package
I hope this can be useful.

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.