Facebook sdk.js returns 404 error - javascript

My web-app has the Facebook JS SDK implemented.
Yesterday, everything was working fine and without any modification on the code, the script request started to return 404 errors.
When I try to access it directly, this is what I find:
Facebook Status shows that the API everything is OK.
Instagram's embeds.js and Facebook's debug SDK are also returning the same error:
Does anyone knows what it happening? I've tried accessing these files using my 4G network and the same error is displayed.
I'm based in Dublin, Ireland.

I figured this one out.. it seems the .net isn't working anymore.. I used ".com" instead:
Use https://connect.facebook.com/en_US/sdk.js
instead of https://connect.facebook.net/en_US/sdk.js

It is related to this bug, subscribe to get updated: https://developers.facebook.com/bugs/949091578557056/
There is a workaround to use .com instead of .net.
Edit: The bug is fixed now.

I had the same problem. Use //connect.facebook.com/en_US/sdk.js url.

Related

iOS: Javascript code in WKWebView got “query cancelled” error after selecting photo from photo library and before uploading to the server

I use Xcode 9.1(9B55), iOS 11.1 both simulator and real iPhone/iPad.
The website(HTML5+Javascript) I used in mobile safari acts perfectly. But in my iOS app(Objective-C), which uses WKWebView to access the same web page, and set all the "privacy - Photo Library Usage" and others, always got the error below after selecting photo from photo library and before uploading to the server:
[discovery] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
But something strange was that I had a successful run for just one time.
I've several threads about this issue, but have no clear solution. Someone said it's a bug of iOS 11.x, but I've tried it on iOS 9.x, the error was same.
I had the same issue on iOS 12.1. I spent a lot of time trying to figure out why I'm getting this error. I thought because of that error I can't upload an image to the server. But turned out on each try, the request fails with 401 status code because of permissions or additional http headers/cookies. In my case, this debug error meant nothing I thought(Maybe that's why additional argument OS_ACTIVITY_MODE = disabled in project scheme worked for other guys, because it just removed debug log from console). So, make sure you have a correct HTTP request with all permissions/headers as well. Maybe it will help you as It helped me. Good luck.

Javascript not works after Wordpress migrating

I need your help.
I have a test site in sitename.domainname.net, I migrated to domainname.com but now the JavaScript codes not works properly, and de Chrome console not show any error. Is the exactly same code.
credentials removed
I've resolve it. I don't know why in the new domain not shows me the errors. But I'd try with Firefox and this shows me the error.

GET Soundcloud connect SDK is returning 404

I am making a GET request for the connect sdk script: https://connect.soundcloud.com/sdk/sdk-3.1.2.js, which has never before failed me before. This file is the one the documentation says to use. However when I make a GET request to: https://connect.soundcloud.com/sdk/sdk-3.1.2.js in a script tag, postman, and in my browser url bar, the return status is 404 Not Found.
Please help me, as my application artistsunlimited.co uses the connect api heavily.
It looks like they deployed some code today; this may be related, because I was not getting this error yesterday. Hopefully they will fix this issue soon.
See status message here.

UA through GTM macro: ga.getAll()[0].get('clientId') - ga is not defined

Here is the site - http://www.ssangyong-favorit.ru/
For some reason this code is giving me "GA is not defined" error:
ga.getAll()[0].get('clientId')
This site has Google Analytics installed on it through GTM and it works and getting stats. The code works for any other site just fine.
The problem is that "ga" doesn't work for some reason and I can't understand why. Maybe it conflicts with something?
UA implemented normally (not Custom HTML).
Please, help me with figuring out what's going on and fixing it.
It would seem that you have renamed the ga object.
ga_ckpr.getAll()[0].get('clientId')
in the javascript console returns a client id.

Jquery internal ajax (get) not working on phonegap + android 2.2

I don't know for sure if the problem is in the request or in the display of the results, but this is not working for me, when I tap on the link on the phone I get a white screen, on desktop (Chrome) works without problems.
$('a').on('click', function(click_event){
$.get($(this).attr('href'),function(response_text){
$('body').html(response_text)
})
click_event.preventDefault()
return false
})
'Debugging' with weinre it tells me it enters on the get function...
I'm using PhoneGap Build and have not set a config.xml, but when I install the app on the phone, it ask permission to access to the Internet...
Any help would be appreciated.
What is the URL within the href?
Is it an external URL or a local path?
If the latter, read in to the Whitelist Guide here...
http://docs.phonegap.com/en/2.5.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide
I solved the problem by adding the last parameter 'dataType' as 'html' on the get call, for some reason it was assuming another type of content (xml or json I guess). Everything is working fine now :)

Categories

Resources