iOS - General Stream Error (FTP) - ios

I am trying to upload a file to FTP server using different libraries like simpleSampleFTP and FTPManager but i am getting "general stream error", my credentials and port are right.
When i try to upload file from proxy local network i can upload file to same server but when outside the proxy local network i get general stream error.
I check on FTP the file is being created the name and extension is right but it remains 0 bytes and then after time out i get error "general stream error".
Have anybody faced the same problem? How can i solve this issue any ideas?

In my case the problem occurred because FTP server is using External IP Address. I have solved this problem by passing manual commands to FTP Server.

Related

Cannot access wsdl file from different machine

I am trying to run the running Client & Server Application on different machine but then I am getting below exception message which says it can not get wsdl file on that machine:
javax.xml.ws.WebServiceException: Failed to access the WSDL at:
http://localhost:8080/proj_name/EmpServices?wsdl. It failed with: Got
http://localhost:8080/proj_name/EmpServices?wsdl while opening stream
from same_link_as_above/EmpServices?wsdl.
It looks like connection issue, not WSDL or service-related.
Possible causes and solutions:
You tell about "remote machine", but errors says "localhost".
Have you configured your service client to work with your remote machine?
Shouldn't it be remote machine's address? Or is it just a typo?
If you configured it correctly, make sure that you have a working connection and port 8080 is allowed in your firewalls.
You may also try to open this link directly in your browser from client machine, and see what is says.
Perhaps, you will get connection error message, while you should get WSDL file.

crtmp unable to read data tcpcarrier.cpp error

I have server with apache2 listening on port 808 instead of port 80 or 8080. I have a flash program which genrated video stream from webcam on client side and send it to server at ip address with rtmp protocol like "rtmp:///flvplayback/"
it publishes the stream to that ip address
1 ) on local machine the string looks like
"rtmp://192.168.1.12/flvplayback/"
and works fine.
2 ) on remote machine i.e VPS the string looks like
"rtmp://222.222.222.222/flvplayback/"
and here the following error is generated
(crtmpserver running on VPS is generating this error ) .... /tcpcarrier.cpp:78 Unable to read data. 111.111.111.111:33984 -> 222.222.222.222:1935 ....
I am not sure why this error is being genetrated.... I am using ubuntu12.04 crtmpserverr build from Download section of site rtmpd.com The same build works totally fine on my local machine.
I think you should follow the steps here: http://wiki.rtmpd.com/quickbuild
The builds on the site are quite old. The sources are much newer
Can you also provide some log files as well? I don't remember exactly... did you put this question on the crtmpserver's mailing list as well?
Best regards,
Andrei

nusoap wsdl problem when moving to new server?

I am trying to move a file which calls a wsdl service with the nusoap class. On the new server i get the following error:
wsdl error: HTTP ERROR: Couldn't open socket connection to server http://ip...:xxxx/service.asmx?wsdl, Error (13): Permission denied
Is this an incorrect server setting? If so which setting would be the most common with this issue?
Could it be some kind of firewall? Should i ask my hosting company to enable something??
Any tips, suggestions??
fyi with $nusoapclient->debug_str i get
soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host xxx.xxx.xxx, port xxxx
soap_transport_http: calling fsockopen with host xxx.xxx.xxxx connection_timeout 0
soap_transport_http: Couldn't open socket connection to server
Ok for those running into the same issue, check if your php/apache config is permissive vs enforced. This might solve your problem

"getaddrinfo: Temporary failure in name resolution" in RoR application

I'm trying to retrieve emails from gmail using pop3 to my rails applicaiton. I get the error - "getaddrinfo: Temporary failure in name resolution" when i try to retrieve the email.
the weird thing is, it works when i try it at home but not at my university. i'm guessing it has something to do with the internet connection.
please help!
I had the same problem just started getting this error out of the blue in a RoR application that connects to an API using a RestClient running on a local virtual machine using Vagrant that I have as a development environment.
The only thing that fixed the issue was simply restarting my virtual machine. Just done a vagrant down & up command, then rackup and back in the game.
This generally means you aren't getting a response from DNS. Your university connection is probably behind a proxy preventing you from directly accessing the Internet. If so, this proxy must be specified in your code. Check your POP3 library documentation, or failing that, you may be able to use a library like socksify that redirects TCP connections through your SOCKS proxy.
Simple. You may be directed through a proxy server. Set up a new connection ,set up your college settings,restart your server and it should work.
ssh into your server and check if the machine is able to resolve the domain.
ping <your_site> should resolve the domain name to IP.
If its not resolving correctly, then there is some problem in your hosting service.
quick fix: You can manually map domain-to-ip in the etc/hosts file of your server.

Problem Publishing Silverlight Application LocalHost

I am trying to publish my SilverLight application to the web and I keep getting "An error occurred while trying to make a request to URI "http://localhost:2898....".
I've changed the ServiceReferences.ClientConfig to point to the web address but the app still keeps on trying to connect to localhost.
I've opened the application in FireFox and took a look at the firebug log and it says: -
clientaccesspolicy.xml 404 Not Found localhost:2898
crossdomain.xml 404 Not Found localhost:2898.
The silverlight app is accessing the web service in the same domain, I just don't know why it is still trying to connect to localhost.
Any help appreciated.
Steve
Two things come to mind, but check your "c:\windows\system32\drivers\etc\hosts" file and make sure ure local computer name or ip isnt mapped to localhost or the network machine isnt mapped to localhost for whatever strange reason.
Is the Silverlight app And WCF Service hosted on your localmachine, or are you accessing a server on your local network?
Just open the hosts file (C:\windows\system32\drivers\etc) and uncomment the following line (remove # from the beginning of the line): 127.0.0.1 localhost
Then save it, it should work.

Resources