Invoking error handler due to Uncaught abort(59) at Error. How can I solve this? - unity3d

So I am trying to create a Unity game for WebGl. In this game I need auth0 for the authentication part.
This is the code for the authentication part:
var client = new AuthenticationApiClient(new System.Uri("..."));
var authorizationUrl = client.BuildAuthorizationUrl()
.WithResponseType(AuthorizationResponseType.IdToken, AuthorizationResponseType.Token)
.WithClient("...")
.WithConnection("...")
.WithAudience("...")
.WithRedirectUrl("...")
.Build();
Application.OpenURL(authorizationUrl.AbsolutePath);
To make my page work I have a local server in XAMPP.
So the idea with this is that I need to click a button on the game redirect the page to an Auth0 authentication page and once I enter my username and password (for example gmail account) I go to the game again.
The problem is that whenever I click in this button, I get this error:
Invoking error handler due to
Uncaught abort(59) at Error
at jsStackTrace (htdocs.wasm.framework.unityweb:8:22295)
at stackTrace [Object.stackTrace] (htdocs.wasm.framework.unityweb:8:22466)
at Object.onAbort (http://localhost/Build/UnityLoader.js:4:11047)
at abort (htdocs.wasm.framework.unityweb:8:484763)
at wasm-function[56208]:3
at wasm-function[16961]:46
at wasm-function[43219]:1456
at wasm-function[56097]:16
at dynCall_iii [Object.dynCall_iii] (htdocs.wasm.framework.unityweb:8:459875)
at invoke_iii (htdocs.wasm.framework.unityweb:8:339724)
at wasm-function[43216]:388
at wasm-function[43215]:75
at wasm-function[43213]:99
at wasm-function[43212]:7
at wasm-function[43531]:69
at wasm-function[43530]:7
at wasm-function[28791]:330
at wasm-function[16681]:48
at wasm-function[23219]:1236
at wasm-function[16681]:48
at wasm-function[23267]:1090
at wasm-function[28454]:534
at wasm-function[48795]:330
at wasm-function[23210]:101
at wasm-function[22913]:152
at wasm-function[28604]:71
at wasm-function[28603]:128
at wasm-function[23091]:1169
at wasm-function[22398]:52
at wasm-function[22915]:11
at wasm-function[56135]:22
at dynCall_viiiii [Object.dynCall_viiiii]
And there is more from where this came from. I tried to solve this by searching for that error in google but failed. Any suggestions?

Related

I got error from React Native Expo webview : Domain undefined

I'm using Expo webview for my react project.
But i got an Error when i turn off my phone an hour and my app was still on foreground.
Error message was like
Error loading page
Domain : undefined
Error Code : -2
Description: net::ERR_NAME_NOT_RESOLVED
I guess this error occurs because when user's access token expires, i reload the page to reconnect websocket.
Please help this stupid junior developer 😢
enter image description here

Facebook login WinJS Store app issues

I tried following this blog post
Which explains how to setup up facebook login on a WinJS app.
I got it all working, got the app ids set and the authentication dialog is showing the correct app name and authentication stuff, however when the app redirects the app receives this error (after closing the dialog: "The specified protocol is unknown") and the dialog shows the error message: "We can't connect to the service you need right now. Check your network connection or try this again later".
the error stack:
"WinRTError: The specified protocol is unknown.\r\n\n at getResultsOfAsyncOp (Function code:338:5)\n at op.completed (Function code:427:21)
Actual calling code:
var loginURL = "https://www.facebook.com/dialog/oauth?client_id=[snip]&display=popup&scope=user_about_me&response_type=token&redirect_uri=ms-app://s-[snip]/"
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(
Windows.Security.Authentication.Web.WebAuthenticationOptions.none,
new Windows.Foundation.Uri(loginURL))
.then(function success(result) {
}, function error(error) {
});
Hopefully anyone here has any idea why this error message is thrown.
We managed to solve the issue.
The sid from the store was different from the sid of the app during local debugging. By changing the appmanifest -> packaging -> publisher certificate to a local certificate with the CN provided in the store settings the sid is updated to be equal to the one in the store.
et voila, it works.

Heroku - Application Error, but no error in logs

I'm hacking away at a Facebook app on Heroku, using Node.js. When I go to the app myself, it works exactly as I expect. When I send another developer/tester to it, the standard Heroku "Application Error" message is displayed. When I check the logs, there isn't even a log that the developer made a GET request for the app page, let alone an error.
He tells me that the last thing he sees in his browser status bar is "waiting for .herokuapp.com", which implies that Facebook got to the app, but the logs don't support this theory.
Is there another method of seeing Heroku errors? Is there something I have to turn on in order to see more? A setting I have to modify to let this other guy use the app?
Update: Some more looking around led me to check the network traffic. He's getting a 503 Service Unavailable, followed by the error page. Still wondering why this happens on his machine, but not mine.
Update: Inserted some error-checking code into the handle_facebook_request method.
req.facebook.app(function(err, app) {
if(err !== null) {
var errorMessage = "Error getting app: " + util.inspect(err['error']);
console.log(errorMessage);
}
// rest of req.facebook.me, and rendering code
}
This gives me an "Unsupported get request", of type "GraphMethodException" and code 100. So now I have something I can look into! I wish that Heroku had at least mentioned that the request had been tried.
I had the same problem with a new facebook app created with the support heroku / node.js.
After several attempts and tests I saw that I get the message "Unsupported get request", type "GraphMethodException" and the code 100, because my facebook app was with sandbox mode.
When I disabled the sandbox my application on heroku it worked fine.

Having trouble getting facebook sample to work - the one called "Feed Dialog".

Does anyone have a working xcode project they could upload / share?
I'm having trouble getting this to work clean without errors.
The example is located here.
[https://developers.facebook.com/docs/howtos/feed-dialog-using-ios-sdk/][1]
I have the project working to this extent -
The main viewcontroller is displayed with a button that allows the user to send a post to facebook.
When clicked, facebook indicates that the user has already authorized the app to post to their page. He clicks OK on the facebook message and then the user sees the 'share' dialog and is allowed to enter text for his post.
As the sharedialog is presented to the user, I get this warning in my console
2012-09-29 11:04:25.190 gw_fakeapp[8016:fe03] FBConditionalLog: handleOpenURL should not be called once a session has closed
My problem comes when the user clicks "share", I get the error:
2012-09-29 11:04:32.217 gw_fakeapp[8016:fe03] *** Terminating app due to uncaught exception 'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: an attempt was made reauthorize permissions on an unopened session'
*** First throw call stack:
(0x14c9022 0xfe2cd6 0x14c8ee1 0x171d1 0x14367 0x3ad8 0x14cae99 0x14814e 0x386a0e 0x14cae99 0x14814e 0x1480e6 0x1eeade 0x1eefa7 0x1ee266 0x16d3c0 0x16d5e6 0x153dc4 0x147634 0x1da9ef5 0x149d195 0x1401ff2 0x14008da 0x13ffd84 0x13ffc9b 0x1da87d8 0x1da888a 0x145626 0x28ed 0x2815)
terminate called throwing an exception(lldb)
Does anyone have a working project I could compare mine with?
Thank you!
Phil
You can download sample of codes from developer.apple.com which describe about Facebook post publishing.
Here is the link: https://github.com/downloads/facebook/facebook-ios-sdk/FacebookSDK-3.1.pkg

FBConnect Issues: Authentication and post won't work the first time

I've two issues with Facebook Connect:
1) I use the new Single Sign On Authentication. It works great, but the first time, I authenticate an user with my App when I request the token, i immediately want to post a link to the users wall, but then I get this error:
2011-10-11 15:42:44.831 [1717:707] Dialog DidFail With Error: Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.)" UserInfo=0x7487290 {NSErrorFailingURLKey=https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fwww.example.it%2Findex.php%3Fid%3D4%26no_cache%3D1%26tx_ttnews%5Btt_news%5D%3D103184&access_token=_test-Z0Ru37mpEAbffAn9n5wlWUaIVOH2tsF8.eyJpdiI6IjYyUXVBOTJKZVVwWjF5bmxZUmluUGcifQ.VxaUq2QcPXUgcYTjvqtnhLcBK27wflAIv3XoNVNcRT6dtQqfJZZ9NdLqLXxPdpBFl1U1DGF8xetLy8TOcLuLmU9l2AQ0JzYKmm9d-7azAYCYiZc51BiXKgHlpzw9Hsplr-tTKAfkXF2oJSOkbeN7UDMyLqDdCyhwiFTdVX3tGzA&app_id=1535027294&redirect_uri=fbconnect%3A%2F%2Fsuccess&user_message_prompt=Teilen&sdk=2&display=touch, NSErrorFailingURLStringKey=https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fwww.example.it%2Findex.php%3Fid%3D4%26no_cache%3D1%26tx_ttnews%5Btt_news%5D%3D103184&access_token=_Wtest_modifiedF8.eyJpdiI6IjYyUXVBOTJKZVVwWjF5bmxZUmluUGcifQ.VxaUq2QcPXUgcYTjvqtnhLcBK27wflAIv3XoNVNcRT6dtQqfJZZ9NdLqLXxPdpBFl1U1DGF8xetLy8TOcLuLmU9l2AQ0JzYKmm9d-7azAYCYiZc51BiXKgHlpzw9Hsplr-tTKAfkXF2oJSOkbeN7UDMyLqDdCyhwiFTdVX3tGzA&app_id=688535027294&redirect_uri=fbconnect%3A%2F%2Fsuccess&user_message_prompt=Teilen&sdk=2&display=touch}
The second time I try to post something to the wall I get a success, there I don't need to request the permissions again. But the first time it always fauls. With the facebook.app installed, but also with the redirect from Safari.
I only requested "stream_publish", when requesting also "offline_access" then it works. Seems to be a Facebook issue.
We are seeing the same thing over on First dialog after authenticating fails immediately and closes dialog
I know yours was first, but the discussion ended up over on that question.