Flash AS3 Error 2032 - php

I am trying to send some data using URlLoader and urlVariables(this also includes encoded images ) on a button click to Php Script.Its a POST request. My client says - "Most of the times it works fine but sometimes it gives an "Error 2032"" but i am unable to replicate the error. I am listening to HTTP_STATUS, IO_ERROR and COMPLETE events. Php script file url is correct and the cross domain policy file is in place. I am using CSS 5.5 & AS3 . Any Thoughts. Thanks in Advance.

Related

What specifically the meaning of "Error Code 403 ASN mismatch"?

I'm trying to create an application that uses the Streamtape API (https://streamtape.com/api#download-getlink) to download a video file. My application run smoothly and perfectly on local development server. However, when I deployed it to live server (AWS), I'm getting a 403 error saying "ASN mismatch / Website: AS14618 Download: AS9299".
I'm trying to figure out the cause of it but no luck. Any idea or fix? I'm using file_get_contents to get te data from JSON response and dynamically add it to link.
https://en.wikipedia.org/wiki/Autonomous_system_(Internet)
TLDR: An ASN identifies a internet network operator. IP address blocks are assigned to ASNs.
This thing seems to be complaining that you're attempting to access it from AS14618 [Amazon] when it is expecting to be accessed from AS9299 [Philippine LDT].
Either you need to get the remote provider to allow access from Amazon, or you need to keep your website inside their approved network.

HTTP 500 errors with the php Google API client

I want to get the data from google sheet in json format. I have implemented the code but it giving error is
page currently unable to handle this request.HTTP ERROR 500
I am using this link "https://gist.github.com/karlkranich/de225928665dc6b83667". The function checkServiceAccountCredentialsFile() given in this file was not defined anywhere in base.php file. So i coppy the base.php file from "github google client php".
When i echo this function in my php file from where i am trying to get the data is not working.
please suggest anything to resolve this issue.

ISSUU: Upload not working - Response Code: 999 Internal server error

I'm trying to upload files via the API (issuu.document.upload). It worked in the past. But on new files I receive always the following response error:
{"rsp":{"_content":{"error":{"code":"999","message":"a66125aeaff42e3a893a985fdc9b659587880484 - Internal server error"}},"stat":"fail"}}
The document also does not show up in "My Publications" (http://issuu.com/home/publications)
There is no API documentation about this error code...
Problem solved (the ISSUU developers fixed it). From the ISSUU support team: "... It seems like there was some problems with our API servers, ..."

Uploading multiple images to server causes error

I am using the Loopj AsyncHttpClient for Android and it works like a charm.
Now I am trying to upload three small images to my server, and I am having some problems.
It is very weird because it works perfectly if I upload 2 images, but when I try to add a third to the same request, the server response is the error 3 for file uploads:
UPLOAD_ERR_PARTIAL
Value: 3; The uploaded file was only partially uploaded.
So when I do this:
params.put("photo1", f1);
params.put("photo2", f2);
it works...but when I add a third:
params.put("photo1", f1);
params.put("photo2", f2);
params.put("photo3", f3);
the server fails to process the request...
I have checked the files, the server side app seems to work fine (I tried sending the data with postman and it works)
Do you know why AsyncHttpClient would fail uploading 3 files but succeed uploading 2??
thanx in advance
This problem has been introduced with version 1.4.4 of this library. I did not have time to dig deeper yet, but I suspect this particular commit: https://github.com/loopj/android-async-http/commit/9f73dc722fdf8b564bf1487eef395d0b7e4ae862 to be responsible for this issue.
As a workaround, use version 1.4.3 for now. It should work fine.
I got a similar problem after update to 1.4.4. If I upload 2 images, the server will only get 1 image (if 3, will get 2). After search and testing, I know the server, my code and 1.4.3 are ok.
Today I try this:
params.put("photo1", new FileInputStream(f1));
params.put("photo2", new FileInputStream(f2));
params.put("photo3", new FileInputStream(f3));
It works.

jQuery load() working on localhost but not on server

I have encountered a very strange problem in using jQuery load(). I used it to load a php file in a div container. It's working fine on my localhost but on the server it does not load the php file and instead gives
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
I don't know why is this happening. My jQuery code is:
//ADD THE Description TO THE HOLDER
infofield.append('<div id="'+opt.style+' description" class="'+opt.style+' description">'+item.data('desc')+'</div>');
// ATTACHED the comments to the LIGHTBOX
$('.description').load('gallery_comments.php?id='+id+'&pic='+imgsrc+'&a'+ab);
Is there a server issue? Using on localhost with WAMP server and testing cross browser compatibility it runs in all browsers, even in IE8. Can any one help?
update ** just used chrome and found out one bug in Uncaught ReferenceError: $ is not defined in line 9 and line 9 code is
$(function() {
$('div.viewgp').hide();
$('.slidegp').click(function() {
$('.viewgp').fadeToggle(200);
});
});
You say you can access gallery_comments.php directly, but with what query string parameters? Are you sure that you use the same ones which are appended via the values of id, imgsrc, and ab in the following line?
$('.description').load('gallery_comments.php?id='+id+'&pic='+imgsrc+'&a'+ab);
Try the following changes to determine exactly what you're trying to load, and navigate directly to the url that comes to your console or alert box:
var url = 'gallery_comments.php?id='+id+'&pic='+imgsrc+'&a'+ab;
console.log(url); // or alert(url);
$('.description').load(url);
If I wanted to play psychic debugging, these would be my first two guesses:
one of the parameters is required server side, but is null / empty / undefined in your javascript
There is an attempt to access a resource that is accessible on your localhost environment but not on the remote server environment

Categories