Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:04
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  HTTP: Status 500 error?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Print
Author Topic: HTTP: Status 500 error?  (Read 21129 times)
benishky
Server what's that
*
Posts: 10



View Profile Email
« on: 03/04/04, 14:23 »

I'm runninng into a rather odd issue.  I have several dbase pulls in a little app I built and after one call is done it moves to the next.  I'm getting this error from one object in the database only...all others work fine when called using the same method.  I looked into the dbase for anything unusual and couldn't find anything.


Anyone know what the following error means? I did a search and couldn't find anything.  Obviously it didn't call the service and got jumbled up some how in the process of going from one connection/call combo to the next.  
the URL is correct and as I said it works for all other returned data. I know it's probably something small, but what does this error entail?

Could it have to do with more than one connection being open or several calls..???

Status (object #2)
.....code: "NetConnection.Call.Failed"
.....description: "HTTP: Status 500"
.....details: "http://xxx.xx.xx.xx/amf/gateway.php"
.....level: "error"
« Last Edit: 03/04/04, 16:22 by benishky » Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 03/05/04, 02:37 »

500 is an internal server error.
This means, you have a runtime problem while running the script.
You have to trace this down step by step.
Try to execute each of the sql commands inside of phpMyAdmin.
If you tested it with all the possible parameters, and it was working in phpMyAdmin, it will work in the script as well.
Check for misstypes of parameter names.
Maybe create a testing environment, where you have a textbox receiving error returns.
Logged

happy flashing
Cool
Ronald
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #2 on: 03/05/04, 06:41 »

When you call a method before the previous finish, you get this kind of errors.

Jorge
Logged

benishky
Server what's that
*
Posts: 10



View Profile Email
« Reply #3 on: 03/05/04, 10:44 »

Thanks Jorge, I'm guessing that's the problem, because when I call it locally it works, but when called w/ an I.P it doesn't.
 I'm going to try another technique.  Is there an API for the results being finished(i.e. ifLoaded ?? isFullyPopulated ??).  I"m using a hack w/ setinterval and using a variable to tell me when its finished.  
« Last Edit: 03/05/04, 10:53 by benishky » Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #4 on: 03/05/04, 11:19 »

Hi,
onResult is fired, when you received return.
Logged

happy flashing
Cool
Ronald
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #5 on: 03/05/04, 11:20 »

You can't guess or estimate how much it will take, you need to wait until the method_Result callback fires. So using a setInterval is not a good idea.

Jorge
Logged

mangrove
Server what's that
*
Posts: 12


View Profile Email
« Reply #6 on: 11/07/08, 01:10 »

i have same problem.

My server based on Windows. My hosting managed Plesk software. All files stored in httpdocs folder.

Ex:
httpdocs/bin(weborb.dll, ....)
httpdocs/crossdomain.xml (http://www.gis.net.vn/crossdomain.xml)
httpdocs/index.swf
httpdocs/index.html
httpdocs/web.config
httpdocs/weborb.config
httpdocs/web-inf/flex/services-config.xml (http://www.gis.net.vn/web-inf/flex/weborb-services-config.xml)
httpdocs/web-inf/flex/weborb-services-config.xml (http://www.gis.net.vn/web-inf/flex/weborb-services-config.xml)
httpdocs/web-inf/flex/remoting-config.xml (http://www.gis.net.vn/web-inf/flex/weborb-services-config.xml)
....


I download the folder httpdocs to my PC and create a Virtual directory, then i browser on it. My site works file.

Then i upload the folder httpdocs to server again and address www.gis.net.vn.

I still have an error message.

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://www.gis.net.vn/weborb.aspx'"]

I don't know what configuration.

Anybody help me please.
Thanks
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #7 on: 11/07/08, 01:28 »

Hi Mangrove,
welcome to the boards.

A 500 error means, the server ran into a problem somehow.
How does it react, if you run this certain query by itself?
You need to isolate the section, which causes the error.
Could be out of memory? No further database connection available? whatever ...

Try to fetch the error inside of your functions and make the function output a more speaking error text.
Logged

happy flashing
Cool
Ronald
mangrove
Server what's that
*
Posts: 12


View Profile Email
« Reply #8 on: 11/07/08, 05:55 »

why i download all files in server to my PC. It works fine?
That bug only appears on server?
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #9 on: 11/07/08, 07:06 »

so you hit some limitation there.

Check with Charles.

Some free hosting companies insert advertising code into the stream, which interferes with flash remoting.
Logged

happy flashing
Cool
Ronald
mangrove
Server what's that
*
Posts: 12


View Profile Email
« Reply #10 on: 11/07/08, 22:46 »

Hi Ronald Wernecke,

I Checked with Charles and i received a message (in General tab):

URL: http://www.gis.net.vn/weborb.aspx
Status: Failed
Failed: Remote server closed the connection before recieving request header
Response code: -
Protocol: HTTP/1..1
Method: POST
Content type: -
Client Address: /127.0.0.1
Remote Address: -


I don't know what above parameters.
Please help me
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #11 on: 11/08/08, 03:40 »

Hi Mangrove,
what is the url of your site?
Are you using PHP, or rather ASP?
Make sure, that all pages, you are calling, are available ind exactly the way of writing you are using.
Most hosting is done with UNIX/LINUX systems, which make a difference between CAPS or nonCAPS.
Logged

happy flashing
Cool
Ronald
mangrove
Server what's that
*
Posts: 12


View Profile Email
« Reply #12 on: 11/08/08, 10:16 »

hi Ronald Wernecke,

My hosting based on Windows.
I downloaded all files in root folder on server to my PC, then i create virtual directory (mytest) and run it on localhost. It works file.

I don't know why it has error on www.

BTW. I noted that. On my localhost. when i type http://localhost/mytest/weborb.aspx and press Enter key. the address bar automatically change to http://localhost/mytest/weborbconsole.html.

But when i type http://www.gis.net.vn/weborb.aspx in address bar, it didn't change.

So I sure that, when i type http://www.gis.net.vn/weborb.aspx in address bar on  www if it changes to http://www.gis.net.vn/weborbconsole.html then my app will work property.

But i don't know configure now.
Anybody help me
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #13 on: 11/08/08, 13:19 »

The server behaves like either weborb.aspx, or weborbconsole.html or any other file used there is not available.
I dont know, what you expect to receive from these files. They dont realy look like typical AMF object files.
But I am not totaly familiar with the ASP-Version of object AMF.
Logged

happy flashing
Cool
Ronald
mangrove
Server what's that
*
Posts: 12


View Profile Email
« Reply #14 on: 11/09/08, 06:16 »

I use the WebORB (http://www.themidnightcoders.com/) for .NET to communicate Client-Server.

i modified service-config.xml, crossdomain.xml every ways. But still get error:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://www.gis.net.vn/weborb.aspx'"]

anybody help me
Logged
Pages: [1] 2 Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything