"APPLICATION_DOES_NOT_EXIST" from Mobile first server in ionic 4 mfp application - websphere

when i launch the ionic mobile application we are checking with mfp it is giving below error not able to launch application in some times.
please find the response json from mfp
[ibm-mobilefirst] worklight
responseJSON
:
errorCode
:
"APPLICATION_DOES_NOT_EXIST"
errorMsg
:
"Application doesn't exist"
[[Prototype]]
:
Object
responseText
:
"{"errorCode":"APPLICATION_DOES_NOT_EXIST","errorMsg":"Application doesn't exist"}"
status
:
403
statusText
:
"Forbidden"
enter image description here

You will see this error "APPLICATION_DOES_NOT_EXIST" when your application is not registered in the mobilefirst server console.
In root of you app run command > mfpdev app register
More details see here https://www.ibm.com/docs/en/mpf/8.0.0?topic=server-mobilefirst-platform-cli-registering-cordova-applications

Related

Why it gives 403 error in strapi sometime?

Problem statement: In strapi sometimes it is giving 403 error while getting content manager What will be the issue?
System Information
Strapi Version : Strapi 4
Operating System : Windows
Database : MySQL
Node Version : 16.15.1
NPM Version : 8.11.0
#strapi #strapi 4.0.5
Make sure the endpoint is either public or your authenticating as a user with a role that has sufficient permissions.

Can't play an remote audio file from an API made with Laravel from a React Native Expo app

I am trying to play an audio file with Expo Audio from an API made with Laravel in a React Native app but it's returning 404 not found
this is the Laravel API code that returns the URL to the file on the server
$audio_url = 'https://website.com/api' . Storage::url($filename);
and laravel returned a URL like this
https://website.com/api/storage/filename.mp3
and this is the Audio player code in React Native Expo
sound.current = await Audio.Sound.createAsync(
{uri: audioDetails.url},
{ shouldPlay: true }
);
but I am getting this error
[Unhandled promise rejection: Error: com.google.android.exoplayer2.upstream.v$a: com.google.android.exoplayer2.upstream.v$a: java.io.FileNotFoundException: : open failed: ENOENT (No such file or directory)]
please what can I do, thanks in Advance

Bug CleverBeagle Pup 2.0 Meteor GraphQL deployment on Heroku

1) In the first time, when I deployed the origin code to heroku server with git clone https://github.com/cleverbeagle/pup
The launching application didn't work.
I managed to correct this with to copy the content of 'settings-development.json' file and paste in Heroku => myProject => Setttings => Reveal Config Vars => Key : METEOR_SETTINGS and Value : I pasted here the content.
thanks to :
- https://github.com/cleverbeagle/pup/issues/9
- https://github.com/cleverbeagle/pup/issues/197
So, now, the app is showing on server.
2) On Chrome console, I have this error :
50d72c91808ef7fba57f920b67d152d2d57698eb.js?meteor_js_resource=true:9 WebSocket connection to 'ws://localhost:4001/graphql' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
so I changed this in METEOR_SETTINGS
"graphQL": {
"httpUri": "http://localhost:3000/graphql",
"wsUri": "ws://localhost:4001/graphql"
},
to
"graphQL": {
"httpUri": "https://myproject.herokuapp.com:3000/graphql",
"wsUri": "wss://myproject.herokuapp.com:4001/graphql"
},
Note without https and wss, the app is not showing
3) Now on Chrome Console, I have :
this warning :
50d72c91808ef7fba57f920b67d152d2d57698eb.js?meteor_js_resource=true:9 WebSocket connection to 'wss://myproject.herokuapp.com:4001/graphql' failed: WebSocket is closed before the connection is established.
and after several warning above, I have this error :
50d72c91808ef7fba57f920b67d152d2d57698eb.js?meteor_js_resource=true:9 WebSocket connection to 'wss://myproject.herokuapp.com:4001/graphql' failed: WebSocket opening handshake timed out
By using the origin source code from Pup, I can signup on server but I cannot create a new document.
Any help, please ?
Thank you
EDIT 15 JAN 2019
**4) I remove Port like this : **
"httpUri": "https://myproject.herokuapp.com/graphql",
"wsUri": "wss://myproject.herokuapp.com/graphql"
Now, I can create New document on https://myproject.herokuapp.com/documents
but I still have this warning :
fe6fa1ac83e19aa2513ac3f97293600e8dc99e8e.js?meteor_js_resource=true:9
WebSocket connection to 'wss://myproject.herokuapp.com/graphql'
failed: WebSocket is closed before the connection is established.
and this error :
WebSocket connection to 'wss://myproject.herokuapp.com/graphql'
failed: Error during WebSocket handshake: Unexpected response code:
503
any idea ?
Thanks

error in simple mac os , xcode web browser : NSURLConnection finished with error - code -1022

I have created a simple web browser in xcode for macos, using this video : https://www.youtube.com/watch?v=oKk4zSTHzwY
but when i type https://google.com
I get following error in xcode console : NSURLConnection finished with error - code -1022

System.Net.Http.HttpRequestException exception will running th xamarin UI Test on Physical Device

I have created a simple Xamarin.Forms(Portable) project and included UI Test project in it. But when i am trying to run the test in physical device it giving me below mentioned exception.
Test Name: AppLaunches
Test Outcome: Failed
Result Message:
SetUp : System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.WebException : The underlying connection was closed: The connection was closed unexpectedly.
Result StandardOutput: Full log file: C:\Users\Admin\AppData\Local\Temp\uitest\log-2016-10-22_11-04-53-698.txt
Skipping IDE integration as important properties are configured. To force IDE integration, add .PreferIdeSettings() to ConfigureApp.
Android test running Xamarin.UITest version: 2.0.0.1534
Initializing Android app on device ZX1D63GCCL with installed app: co.veloxcore.UITestSample2
Signing apk with Xamarin keystore.
Skipping installation: Already installed.
Here is the link to my project: XamarinUITest
Log File : Error Log
Are you using using ModernHttpClient?
Also you can use Polly if you want to handle network exceptions.
For example:
conferences = await Policy
.Handle<WebException>()
.WaitAndRetry
(
retryCount:5,
sleepDurationProvider: retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt))
)
.ExecuteAsync(async () => await getConferencesTask);
Also AsyncErrorHandler is great tool to handle async exceptions

Resources