Parse error 100 - parse-platform

I'm getting this error most of the time in last 24 hours. Sometimes, it works ok, without any fixes. After few requests it stops working again.
This error first appears without any changes in code. My internet connection is ok.
error in browser console in my app:
POST https://api.parse.com/1/classes/NewEstateData net::ERR_CONNECTION_RESETmain.js:2000
Parse._ajax.dispatchmain.js:2003
Parse._ajaxmain.js:2109
(anonymous function)main.js:4509
_.extend.then.wrappedResolvedCallbackmain.js:4571
(anonymous function)main.js:4554
_.extend.then.runLatermain.js:4570
_.extend.thenmain.js:2098
Parse._requestmain.js:8872
Parse.Query.firstmain.js:8727
Parse.Query.getmain.js:38795
Parse.Object.extend.getNewEstateByIdmain.js:36802
React.createClass.componentDidMountmain.js:17732
assign.notifyAllmain.js:30901
ON_DOM_READY_QUEUEING.closemain.js:33673
Mixin.closeAllmain.js:33614
Mixin.performmain.js:28956
batchedMountComponentIntoNodemain.js:33600
Mixin.performmain.js:26083
ReactDefaultBatchingStrategy.batchedUpdatesmain.js:31827
batchedUpdatesmain.js:29091
ReactMount._renderNewRootComponentmain.js:30330
ReactPerf.measure.wrappermain.js:29180
ReactMount.rendermain.js:30330
ReactPerf.measure.wrappermain.js:38781
(anonymous function)main.js:15664
React.createClass.statics.run.dispatchHandlermain.js:15632
(anonymous function)main.js:14686
(anonymous function)main.js:14686
(anonymous function)main.js:14689
Transition.tomain.js:15631
(anonymous function)main.js:14668
Transition.frommain.js:15628
dispatchmain.js:15679
refreshmain.js:15675
runmain.js:16367
runRoutermain.js:38780
224../components/appmain.js:1
smain.js:1
emain.js:1
(anonymous function)
main.js:38800
getById() error null Parse.Error {code: 100, message: "XMLHttpRequest failed: {"statusText":"","status":0…null,"onload":null,"onerror":null,"onabort":null}"}code: 100message: "XMLHttpRequest failed: {"statusText":"","status":0,"responseURL":"","response":"","responseType":"","responseXML":null,"responseText":"","upload":{"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":4,"timeout":0,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null}"__proto__: Parse.Errorconstructor: function (code, message) {ACCOUNT_ALREADY_LINKED: 208AGGREGATE_ERROR: 600CACHE_MISS: 120COMMAND_UNAVAILABLE: 108CONNECTION_FAILED: 100DUPLICATE_VALUE: 137EMAIL_MISSING: 204EMAIL_NOT_FOUND: 205EMAIL_TAKEN: 203EXCEEDED_QUOTA: 140FILE_DELETE_ERROR: 153FILE_READ_ERROR: 601FILE_SAVE_ERROR: 130FILE_TOO_LARGE: 129INCORRECT_TYPE: 111INTERNAL_SERVER_ERROR: 1INVALID_ACL: 123INVALID_CHANNEL_NAME: 112INVALID_CLASS_NAME: 103INVALID_CONTENT_LENGTH: 128INVALID_EMAIL_ADDRESS: 125INVALID_EVENT_NAME: 160INVALID_FILE_NAME: 122INVALID_IMAGE_DATA: 150INVALID_JSON: 107INVALID_KEY_NAME: 105INVALID_LINKED_SESSION: 251INVALID_NESTED_KEY: 121INVALID_POINTER: 106INVALID_PUSH_TIME_ERROR: 152INVALID_QUERY: 102INVALID_ROLE_NAME: 139INVALID_SESSION_TOKEN: 209LINKED_ID_MISSING: 250MISSING_CONTENT_LENGTH: 127MISSING_CONTENT_TYPE: 126MISSING_OBJECT_ID: 104MUST_CREATE_USER_THROUGH_SIGNUP: 207NOT_INITIALIZED: 109OBJECT_NOT_FOUND: 101OBJECT_TOO_LARGE: 116OPERATION_FORBIDDEN: 119OTHER_CAUSE: -1PASSWORD_MISSING: 201PUSH_MISCONFIGURED: 115REQUEST_LIMIT_EXCEEDED: 155SCRIPT_FAILED: 141SESSION_MISSING: 206TIMEOUT: 124UNSAVED_FILE_ERROR: 151UNSUPPORTED_SERVICE: 252USERNAME_MISSING: 200USERNAME_TAKEN: 202VALIDATION_ERROR: 142X_DOMAIN_REQUEST: 602arguments: nullcaller: nulllength: 2name: ""prototype: Parse.Error__proto__: function Empty() {}<function scope>__proto__: Object__defineGetter__: function __defineGetter__() { [native code] }__defineSetter__: function __defineSetter__() { [native code] }__lookupGetter__: function __lookupGetter__() { [native code] }__lookupSetter__: function __lookupSetter__() { [native code] }constructor: function Object() { [native code] }hasOwnProperty: function hasOwnProperty() { [native code] }isPrototypeOf: function isPrototypeOf() { [native code] }propertyIsEnumerable: function propertyIsEnumerable() { [native code] }toLocaleString: function toLocaleString() { [native code] }toString: function toString() { [native code] }valueOf: function valueOf() { [native code] }get __proto__: function __proto__() { [native code] }set __proto__: function __proto__() { [native code] }main.js:38800
Parse.Object.extend.getNewEstateById.query.get.errormain.js:4645
(anonymous function)main.js:4533
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:4549
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:4539
(anonymous function)main.js:4533
_.extend.then.wrappedRejectedCallbackmain.js:4575
(anonymous function)main.js:4554
_.extend.then.runLatermain.js:4574
_.extend.thenmain.js:4536
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:4549
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:4539
(anonymous function)main.js:4533
_.extend.then.wrappedRejectedCallbackmain.js:4575
(anonymous function)main.js:4554
_.extend.then.runLatermain.js:4574
_.extend.thenmain.js:4536
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:4516
(anonymous function)main.js:4533
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:4539
(anonymous function)main.js:4533
_.extend.then.wrappedRejectedCallbackmain.js:4575
(anonymous function)main.js:4554
_.extend.then.runLatermain.js:4574
_.extend.thenmain.js:4536
_.extend.then.wrappedRejectedCallbackmain.js:4471
(anonymous function)main.js:522
_.each._.forEachmain.js:4470
_.extend.rejectmain.js:1987
Parse._ajax.xhr.onreadystatechange
Parse.com administrative panel - the same. Can't fetch any data, getting an error:
XMLHttpRequest failed: {"statusText":"","status":0,"responseURL":"","response":"","responseType":"","responseXML":null,"responseText":"","upload":{"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":4,"timeout":0,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null}
There are no excessive API requests.

Related

Cannot subscribe to a private or presence channel because no Authorizer has been set. Call PusherOptions.setAuthorizer() before connecting to Pusher

In a chat application,
Laravel 7.x,
Vuejs 2,
Flutter 2.8 and Pusher
Pacakges I use pusherjs, Laravel echo, pusher-php-server and Flutter pusher_client.
in Laravel & Vue public and private channels work fine, in with Flutter public channel also working but, subscribing to private channel show the following error.
Cannot subscribe to a private or presence channel because no Authorizer has been set. Call PusherOptions.setAuthorizer() before connecting to Pusher
W/System.err(10758): java.lang.IllegalStateException: Cannot subscribe to a private or presence channel because no Authorizer has been set. Call PusherOptions.setAuthorizer() before connecting to Pusher
W/System.err(10758): at com.pusher.client.Pusher.throwExceptionIfNoAuthorizerHasBeenSet(Pusher.java:376)
W/System.err(10758): at com.pusher.client.Pusher.subscribePrivate(Pusher.java:281)
W/System.err(10758): at com.github.chinloyal.pusher_client.pusher.PusherService.subscribe(PusherService.kt:152)
W/System.err(10758): at com.github.chinloyal.pusher_client.pusher.PusherService.access$subscribe(PusherService.kt:30)
W/System.err(10758): at com.github.chinloyal.pusher_client.pusher.PusherService$register$1.onMethodCall(PusherService.kt:56)
W/System.err(10758): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
W/System.err(10758): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
W/System.err(10758): at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
W/System.err(10758): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$R4HPk6oFVb-i-YR_PN9YE6kqx1I.run(Unknown Source:12)
W/System.err(10758): at android.os.Handler.handleCallback(Handler.java:883)
W/System.err(10758): at android.os.Handler.dispatchMessage(Handler.java:100)
W/System.err(10758): at android.os.Looper.loop(Looper.java:237)
W/System.err(10758): at android.app.ActivityThread.main(ActivityThread.java:7948)
W/System.err(10758): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(10758): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
W/System.err(10758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
D/PusherClientPlugin(10758): Event stream cancelled.
D/PusherClientPlugin(10758): Event stream listening...
D/PusherClientPlugin(10758): [BIND] chat-event
E/flutter (10758): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(SUBSCRIBE_ERROR, Cannot subscribe to a private or presence
channel because no Authorizer has been set. Call PusherOptions.setAuthorizer() before connecting to Pusher, java.lang.IllegalStateException: Cannot subscribe to a private or presence channel because no Authorizer has been set. Call PusherOptions.setAuthorizer() before connecting to Pusher
E/flutter (10758): at com.pusher.client.Pusher.throwExceptionIfNoAuthorizerHasBeenSet(Pusher.java:376)
E/flutter (10758): at com.pusher.client.Pusher.subscribePrivate(Pusher.java:281)
E/flutter (10758): at com.github.chinloyal.pusher_client.pusher.PusherService.subscribe(PusherService.kt:152)
E/flutter (10758): at com.github.chinloyal.pusher_client.pusher.PusherService.access$subscribe(PusherService.kt:30)
E/flutter (10758): at com.github.chinloyal.pusher_client.pusher.PusherService$register$1.onMethodCall(PusherService.kt:56)
E/flutter (10758): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/flutter (10758): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
E/flutter (10758): at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
E/flutter (10758): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$R4HPk6oFVb-i-YR_PN9YE6kqx1I.run(Unknown Source:12)
E/flutter (10758): at android.os.Handler.handleCallback(Handler.java:883)
E/flutter (10758): at android.os.Handler.dispatchMessage(Handler.java:100)
E/flutter (10758): at android.os.Looper.loop(Looper.java:237)
E/flutter (10758): at android.app.ActivityThread.main(ActivityThread.java:7948)
E/flutter (10758): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (10758): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/flutter (10758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
E/flutter (10758): , null)
E/flutter (10758): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter (10758): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter (10758): <asynchronous suspension>
this is the function inside controller
public function newMessage(Request $request, $roomId)
{
$newMessage = new Message();
$newMessage->user_id = Auth::id();
$newMessage->room_id = $roomId;
$newMessage->message = $request->message;
$newMessage->save();
broadcast(new NewChatMessage($newMessage))->toOthers();
return response()->json($newMessage);
}
this is the event class
class NewChatMessage implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $message;
public function __construct(Message $message)
{
$this->message = $message;
}
public function broadcastOn()
{
return new PrivateChannel('chat.'. $this->message->room_id);
}
public function broadcastAs()
{
return 'chat-event';
}
}
channels.php
Broadcast::channel('chat.{roomId}', function ($user, $roomId) {
if(Auth::check()){
return ['id'=> $user->id, 'name'=> $user->name ];
}
});
In Flutter I use flutter_client package the following code is copied from it's documentation
Future<void> _initPusher() async {
String token = await _store.read('token');
try {
pusher = PusherClient(
"6f8...c3",
PusherOptions(
host: '10.10.10.251',
encrypted: false,
auth: PusherAuth(
'http://10.10.10.251:8000/broadcasting/auth',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $token'
},
),
cluster: 'eu',
),
enableLogging: true,
);
channel = pusher.subscribe("private-chat.2");
pusher.onConnectionStateChange((state) {
print(
"previousState: ${state.previousState}, currentState: ${state.currentState}");
});
pusher.onConnectionError((error) {
print("error: ${error.message}");
});
channel.bind('chat-event', (event) {
print(event.data);
});
} catch (e) {
print(e);
}
}
I can successfully subscribe to public channel by bellow code.
Future<void> _initPusher() async {
try {
pusher = PusherClient(
"6f8...c3",
PusherOptions(
encrypted: false,
cluster: 'eu',
),
enableLogging: true,
);
channel = pusher.subscribe("public-channel-name");
pusher.onConnectionStateChange((state) {
print(
"previousState: ${state.previousState}, currentState: ${state.currentState}");
});
pusher.onConnectionError((error) {
print("error: ${error.message}");
});
channel.bind('chat-event', (event) {
print(event.data);
});
} catch (e) {
print(e);
}
}
your help is really appreciated.
Give this a shot.
Android Pusher AuthorizationFailureException: FileNotFoundException
removing the
'Content-Type': 'application/json',
From your headers might do the trick.
#usman fawwaz, I solved using pusher_client in Flutter. If you want to subscribe to a private channel init pusher as follow.
Future<void> _initPusher() async {
String token = await Store.read('token');
try {
pusher = PusherClient(
pusherKey,
PusherOptions(
host: basePath,
encrypted: false,
auth: PusherAuth(
basePath + "/broadcasting/auth",
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $token'
},
),
cluster: 'eu',
),
enableLogging: true,
);
channel = pusher?.subscribe("private-chat." + widget.room.id.toString());
pusher?.onConnectionStateChange((state) {
print(
"previousState: ${state?.previousState}, currentState: ${state?.currentState}");
});
pusher?.onConnectionError((error) {
print("error: ${error?.message}");
});
channel?.bind('chat-event', (event) {
setState(() {});
});
} catch (e) {
print(e.toString());
}
}
for me the key point was; laravel by default has a route named "broadcasting/auth" I didn't know this.
Pusher itself made a package called pusher_channels_flutter: ^2.0.2 I want to switch to this package, here also I have subscription problem with private package.

Axios catch will not trigger

I have a react app that the user will enter info into a redux form and the function is called. I have a axios post that will not catch an error. I'm not sure what this is happening.
export function vehicleformsubmit(props){
const input={
rfidtag: rfidtag.value,
vin: vin.value,
vehzone: vehzone.value
};
var request=axios.post(`http://localhost:9000/api/bmwvehicle/create`, input);
return function(dispatch){
request.then((response) =>{
dispatch(createVehicleSuccess(response.data, response.status));
}).catch((error) =>{
if(error.response){
dispatch(vehicleHaveError(true));
}
});
};
}
This is that I get back:
createError.js:16 Uncaught (in promise) Error: Request failed with
status code 500
at createError (createError.js:16)
at settle (settle.js:18)
at XMLHttpRequest.handleLoad (xhr.js:77)

Java.Lang.IllegalStateException while using FormsAppCompatActivity in Xamarin Android

The Xamarin android code is giving runtime exception when used with following code:
public class MyActivity: global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
ToolbarResource = Resource.Layout.toolbar;
TabLayoutResource = Resource.Layout.tabs;
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
When running the app, its builds successfully. But in Runtime iot gets into following error StackTrace:
Java.Lang.IllegalStateException: Exception of type 'Java.Lang.IllegalStateException' was thrown.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00078>
at Android.Runtime.JNIEnv.CallIntMethod (intptr,intptr) <IL 0x00069, 0x00297>
at Android.Support.V4.App.FragmentTransactionInvoker.Commit () <IL 0x00038, 0x00143>
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.SwitchContentAsync (Xamarin.Forms.Page,bool,bool,bool) <IL 0x00140, 0x00953>
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.OnPushAsync (Xamarin.Forms.Page,bool) <IL 0x00005, 0x00063>
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.PushViewAsync (Xamarin.Forms.Page,bool) <IL 0x00003, 0x00053>
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.<OnElementChanged>b__13_0 (Xamarin.Forms.Page) <IL 0x00003, 0x0004f>
at Xamarin.Forms.EnumerableExtensions.ForEach<Xamarin.Forms.Page> (System.Collections.Generic.IEnumerable`1<Xamarin.Forms.Page>,System.Action`1<Xamarin.Forms.Page>) <0x00157>
An unhandled exception occured.
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1<Xamarin.Forms.NavigationPage>) <IL 0x001bb, 0x00e0f>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.NavigationPage>.SetElement (Xamarin.Forms.NavigationPage) <0x00827>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.NavigationPage>.Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement) <0x0012b>
at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement) <IL 0x00021, 0x0014f>
at Xamarin.Forms.Platform.Android.MasterDetailContainer.set_ChildView (Xamarin.Forms.VisualElement) <IL 0x00049, 0x001df>
at Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer.UpdateDetail () <IL 0x0001d, 0x000e3>
at Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer.HandlePropertyChanged (object,System.ComponentModel.PropertyChangedEventArgs) <IL 0x0002c, 0x00157>
at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs) <IL 0x0002f, 0x0008b>
at Xamarin.Forms.BindableObject.OnPropertyChanged (string) <IL 0x00012, 0x000d7>
at Xamarin.Forms.Element.OnPropertyChanged (string) <IL 0x00002, 0x0005f>
at Xamarin.Forms.MasterDetailPage.set_Detail (Xamarin.Forms.Page) <IL 0x0007b, 0x002eb>
at eWorker.App.SetRootPage (Xamarin.Forms.Page) [0x00025] in C:\SIProducts\360\Dev\Frontend\BugFixes\Source\BIF\Source\eWorker\XamarinApp\Shared\eWorkerShared\App.cs:97
at eWorker.Views.HomePage.OnAppearing () [0x0000e] in C:\SIProducts\360\Dev\Frontend\BugFixes\Source\BIF\Source\eWorker\XamarinApp\Shared\eWorkerShared\Views\HomePage.cs:39
at Xamarin.Forms.Page.SendAppearing () <IL 0x00025, 0x0011f>
at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.set_UserVisibleHint (bool) <IL 0x0004b, 0x002a3>
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer/<>c__DisplayClass52_0.<SwitchContentAsync>b__1 () <IL 0x00014, 0x0008f>
at Xamarin.Forms.Forms/AndroidPlatformServices/<>c__DisplayClass17_0.<StartTimer>b__1 () <IL 0x00006, 0x00053>
at Java.Lang.Thread/RunnableImplementor.Run () <IL 0x00011, 0x00097>
at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <IL 0x0000a, 0x000a3>
at (wrapper dynamic-method) object.ba4e6bb4-0814-4b71-9867-78bee59c6f1f (intptr,intptr) <IL 0x00011, 0x0003b>
--- End of managed exception stack trace ---
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1448)
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1466)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:634)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:613)
at mono.java.lang.RunnableImplementor.n_run(Native Method)
at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5603)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
03): Shutting down VM
hreadid=1: thread exiting with uncaught exception (group=0x41b6bc08)
This error occurs at points where Navigation.PushAsync or Navigation.PushModalAsync is called.
After some R&D I found that the issue is while it saves the previous stage of App. It worked when the old app is manually removed and then the App is installed while debugging.
But this can not be a proper solution, so any suggestions/help is welcomed.

Parse.com Hosting deploy crash while accessing Config in main.js

While accessing to Parse.Config at hosted-code startup (parse deploy) I get this stacktrace:
TypeError: Object #<Object> has no method 'request'
at Object.Parse._ajax (<anonymous>:654:17)
at null.<anonymous> (Parse.js:1:18442)
at e (Parse.js:2:8941)
at Parse.js:2:9694
at g (Parse.js:2:9431)
at c.extend.then (Parse.js:2:9679)
at Object.b._request (Parse.js:1:18277)
at Function.b.Config.get (Parse.js:1:24017)
at main.js:2:14
the code (in cloud/main.js) is:
Parse.initialize(applicationid,javascriptkey);
Parse.Config.get().then(
function (_config){
config = _config;
console.log('Configuration init completed');
}, function (_error){
console.log('Failed loading configuration');
});
// status function
Parse.Cloud.define("status", function(request, response) {
response.success("spike#digitalx tracker up and running!");
});
seems that Config.get is trying to invoke "request" on any object.
Thank you in advance

Sinch js sdk not making calls

This is my log i the call always ends with a timeout
I'm using angularjs also so what i'm doing is starting the sinchClient (from a Factory) in the app.js and adding the onIncoming Listener then finally make calls in the controller (from a Factory)
GET http://localhost:63342/chatome/www/cordova.js
i {sinch: f, eventListeners: Array[0], callBuffert: Object, localMediaStream: undefined, incomingCallCustomStream: undefined…}
Notification {progress: 0, message: "Get authentication token", object: undefined}
Notification {progress: 0.2, message: "Get instance using auth token", object: undefined}
Notification {progress: 0.4, message: "Get MXP configuration", object: undefined}
Notification {progress: 0.6, message: "Create MXP object", object: undefined}
Notification {progress: 0.8, message: "Will start active connection", object: undefined}
Notification {progress: 0.8, message: "Manually starting active connection", object: undefined}
Notification {progress: 0, message: "SinchClient started", object: undefined}
Notification {progress: 1, message: "Successfully started SinchClient", object: undefined}
Notification {progress: 0, message: "CallUser method called", object: "brenty"}
Notification {progress: 0, message: "Will retrieve new Mic for stream", object: undefined}
Notification {progress: 0, message: "Call was muted using mute().", object: undefined}
Notification {progress: 0, message: "Call PROGRESSING timeout. Will hangup call.", object: g}message: "Call PROGRESSING timeout. Will hangup call."object: gactiveInstance: undefinedautoAnswer: falseautoHangup: falsecallDomain: "data"callEndCause: 1callId: "bf5d5c3a-9b08-47ed-9275-5d03eb1447ed"callOutbound: truecallState: 3clientMap: Objectvirtual: Objectfs: "29987351-7351-4835-86c1-179ad669a45eS"fu: "brenty"__proto__: Object__proto__: Object__defineGetter__: __defineGetter__() { [native code] }__defineSetter__: __defineSetter__() { [native code] }__lookupGetter__: __lookupGetter__() { [native code] }__lookupSetter__: __lookupSetter__() { [native code] }constructor: Object() { [native code] }hasOwnProperty: hasOwnProperty() { [native code] }isPrototypeOf: isPrototypeOf() { [native code] }propertyIsEnumerable: propertyIsEnumerable() { [native code] }toLocaleString: toLocaleString() { [native code] }toString: toString() { [native code] }valueOf: valueOf() { [native code] }get __proto__: __proto__() { [native code] }set __proto__: __proto__() { [native code] }customHeaders: Objecttype: "voice"__proto__: ObjectdataChannels: Object__proto__: Objecterror: nulleventListeners: Array[3]0: Object1: Object2: Objectlength: 3__proto__: Array[0]fromId: "triniwiz"hangupRetries: 6iceMapRx: Object__proto__: ObjecticeMapTx: Array[0]length: 0__proto__: Array[0]incomingStream: undefinedincomingStreamURL: undefinedjoinBuffer: Object__proto__: ObjectoutgoingOffer: RTCSessionDescriptionsdp: "v=0
↵o=- 2486728347566751432 2 IN IP4 127.0.0.1
↵s=-
↵t=0 0
↵a=group:BUNDLE audio video
↵a=msid-semantic: WMS nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG
↵m=audio 9 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
↵c=IN IP4 0.0.0.0
↵a=rtcp:9 IN IP4 0.0.0.0
↵a=ice-ufrag:9XgGQPNJQUYrwuC3
↵a=ice-pwd:7Y30gM1zjN0Vnt5y6IoOoNYD
↵a=fingerprint:sha-256 99:E8:0A:BB:55:9A:5F:C6:21:01:06:32:4B:5A:5E:B7:F0:A7:87:49:68:0A:20:4E:5C:AA:ED:66:87:6E:A3:AB
↵a=setup:actpass
↵a=mid:audio
↵a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
↵a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
↵a=sendrecv
↵a=rtcp-mux
↵a=rtpmap:111 opus/48000/2
↵a=fmtp:111 minptime=10; useinbandfec=1
↵a=rtpmap:103 ISAC/16000
↵a=rtpmap:104 ISAC/32000
↵a=rtpmap:9 G722/8000
↵a=rtpmap:0 PCMU/8000
↵a=rtpmap:8 PCMA/8000
↵a=rtpmap:106 CN/32000
↵a=rtpmap:105 CN/16000
↵a=rtpmap:13 CN/8000
↵a=rtpmap:126 telephone-event/8000
↵a=maxptime:60
↵a=ssrc:885316323 cname:joI6MrZklmLX+lvZ
↵a=ssrc:885316323 msid:nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG a7565e73-846b-495a-b50a-42aff6d70d06
↵a=ssrc:885316323 mslabel:nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG
↵a=ssrc:885316323 label:a7565e73-846b-495a-b50a-42aff6d70d06
↵m=video 9 RTP/SAVPF 100 116 117 96
↵c=IN IP4 0.0.0.0
↵a=rtcp:9 IN IP4 0.0.0.0
↵a=ice-ufrag:9XgGQPNJQUYrwuC3
↵a=ice-pwd:7Y30gM1zjN0Vnt5y6IoOoNYD
↵a=fingerprint:sha-256 99:E8:0A:BB:55:9A:5F:C6:21:01:06:32:4B:5A:5E:B7:F0:A7:87:49:68:0A:20:4E:5C:AA:ED:66:87:6E:A3:AB
↵a=setup:actpass
↵a=mid:video
↵a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
↵a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
↵a=extmap:4 urn:3gpp:video-orientation
↵a=sendrecv
↵a=rtcp-mux
↵a=rtpmap:100 VP8/90000
↵a=rtcp-fb:100 ccm fir
↵a=rtcp-fb:100 nack
↵a=rtcp-fb:100 nack pli
↵a=rtcp-fb:100 goog-remb
↵a=rtpmap:116 red/90000
↵a=rtpmap:117 ulpfec/90000
↵a=rtpmap:96 rtx/90000
↵a=fmtp:96 apt=100
↵a=ssrc-group:FID 3499157865 1266786744
↵a=ssrc:3499157865 cname:joI6MrZklmLX+lvZ
↵a=ssrc:3499157865 msid:nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG c62982b1-d511-4e38-99dc-f212c2f334bc
↵a=ssrc:3499157865 mslabel:nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG
↵a=ssrc:3499157865 label:c62982b1-d511-4e38-99dc-f212c2f334bc
↵a=ssrc:1266786744 cname:joI6MrZklmLX+lvZ
↵a=ssrc:1266786744 msid:nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG c62982b1-d511-4e38-99dc-f212c2f334bc
↵a=ssrc:1266786744 mslabel:nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG
↵a=ssrc:1266786744 label:c62982b1-d511-4e38-99dc-f212c2f334bc
↵"type: "offer"__proto__: RTCSessionDescriptionoutgoingStream: MediaStreamactive: trueended: falseid: "nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG"label: "nMB73xPU5jOnbz5Aek3wP4ASqlrk2Vl3cgHG"onactive: nullonaddtrack: nullonended: nulloninactive: nullonremovetrack: null__proto__: MediaStreamoutgoingStreamURL: "blob:http%3A//localhost%3A63342/72a45df9-ae1f-4098-b7e3-743589f5cc74"pcMap: ObjectproxyUrl: "audio:ISAC/0.0.0.0/0/81.19.110.135:23526"sdpAnswerBuffer: ObjectsdpMap: Objectsinch: fPAPI: Object_appKey: "appKey"_appSecret: undefined_autoStartMxp: true_customStream: undefined_expiresIn: 86400_logHandler: (message) {_logMxpHandler: (){}_multiCall: true_onlineCapability: true_sessionId: "91cf12c2-2b03-47f9-b02f-1ebcdfb97e04"_sessionSecret: "M1sdRn5z2UCTYVMGrAc6FQ=="_subInstanceId: 2586157107_supportVideo: true_url: ObjectapplicationKey: "appKey"authenticate: () { [native code] }authenticateNumber: () { [native code] }authenticateUsername: () { [native code] }callClient: icallData: () { [native code] }callPSTN: () { [native code] }callReporting: () { [native code] }capabilities: ObjectchangePassword: () { [native code] }confirmUserSMS: () { [native code] }createUser: () { [native code] }firefox: falsegetConfiguration: () { [native code] }getInstance: () { [native code] }getInstances: () { [native code] }getServerTime: () { [native code] }getTransportById: () { [native code] }getTransportByParticipants: () { [native code] }getUserProfile: () { [native code] }messageReporting: () { [native code] }mxp: ppostMedia: () { [native code] }pushMessage: () { [native code] }renewInstance: () { [native code] }renewSecret: () { [native code] }started: truetimeDelta: -252updateUser: () { [native code] }user: nverifyUserSMS: () { [native code] }__proto__: ftimeEnded: Thu Jul 02 2015 22:08:18 GMT-0400 (AST)__proto__: Invalid DatetimeEstablished: nulltimeProgressing: nulltoId: "brenty"videoSupport: truewebRtcConfig: ObjecticeServers: Array[2]0: Objecturl: "stun:23.21.150.121"__proto__: Object1: Objectlength: 2__proto__: Array[0]__proto__: Object__proto__: gprogress: 0__proto__: Notification
Notification {progress: 0, message: "Can not hang up call at this time. Will try again in 0.5 seconds (max five retries).", object: undefined}
Notification {progress: 0, message: "Can not hang up call at this time. Will try again in 0.5 seconds (max five retries).", object: undefined}
Notification {progress: 0, message: "Can not hang up call at this time. Will try again in 0.5 seconds (max five retries).", object: undefined}
Notification {progress: 0, message: "Can not hang up call at this time. Will try again in 0.5 seconds (max five retries).", object: undefined}
Notification {progress: 0, message: "Can not hang up call at this time. Will try again in 0.5 seconds (max five retries).", object: undefined}
Notification {progress: 0, message: "Call HANGUP Received", object: undefined}
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
TIMEOUT
MXPLog {message: "Added meta data to MXP message", object: q}message: "Added meta data to MXP message"object: q__proto__: MXPLog
TypeError: Cannot read property 'key' of undefined
at p.17.p.identifyEnKey (sinch.min.js:6)
at d (sinch.min.js:4)
at 8.p.then.l.nextTick.h.promiseDispatch.j (sinch.min.js:4)
at p.8.d.promiseDispatch (sinch.min.js:4)
at sinch.min.js:4
at Array.a (sinch.min.js:4)
at d (sinch.min.js:4)
TypeError: Cannot read property 'key' of undefined
at p.17.p.identifyEnKey (http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:6:27539)
at d (http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:4:9844)
at 8.p.then.l.nextTick.h.promiseDispatch.j (http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:4:10117)
at p.8.d.promiseDispatch (http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:4:4377)
at http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:4:3382
at Array.a (http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:4:7540)
at d (http://localhost:63342/chatome/www/lib/sinch-rtc/sinch.min.js:4:836)
Notification {progress: 0, message: "Successfully initiated call, waiting for MXP signalling.", object: Object}
For some reason the API call to initiate the data-call does not seem to have been properly made, it may be due to the way you've integrated the SDK, a bug in the SDK or other issue. Does the sample apps (supplied with the SDK) work with your application key in your environment?
Also, could you make sure (by looking at the "networks" tab in chrome while making a call) that the request for initiating the call is properly made and there's no error.
If you can, could you share more details on your setup and/or code?
Edit: I'm looking for a request like this;
I was also receiving the console message Notification {progress: 0, message: "Will retrieve new Mic for stream", object: undefined} After struggling with this for some time, I found a solution that solved it for me. Basically, Sinch requires HTML5 audio elements to be present on the page. Look in your onCallProgressing and onCallEstablished event handlers and you'll see lines that look like this:
'onCallProgressing': function (TheSinchCall) {
$('#SinchRingtone').trigger("play");
},
'onCallEstablished': function (TheSinchCall) {
$('#SinchIncoming').attr('src', TheSinchCall['incomingStreamURL']);
$('#SinchRingtone').trigger('pause');
},
When $('#SinchRingtone') and $('#SinchIncoming') don't return a jQuery element because the HTML tags aren't on the page, then Sinch won't work.

Resources