Problem with .NET framework
davinder
Registered Users Posts: 4 Beginner grinner
Hi all,
I'm very new to Smugmug and have been having a problem with the api. I have a website written in .NET and have been using the smugmug .NET framework written by Maria Ghiondea listed in the Hacks and Apps section on the SmugMug wiki (http://smugmugc3.codeplex.com/)
I have been using it for about a week without any problems but today I've started getting these messages:
The remote server returned an error: (500) Internal Server Error.
The remote server returned an error: (400) Bad Request.
everytime I try to list the categories etc.... , I haven't changed my code for about 4 days has anyone else been having any problems with this?
Thanks
Davinder
I'm very new to Smugmug and have been having a problem with the api. I have a website written in .NET and have been using the smugmug .NET framework written by Maria Ghiondea listed in the Hacks and Apps section on the SmugMug wiki (http://smugmugc3.codeplex.com/)
I have been using it for about a week without any problems but today I've started getting these messages:
The remote server returned an error: (500) Internal Server Error.
The remote server returned an error: (400) Bad Request.
everytime I try to list the categories etc.... , I haven't changed my code for about 4 days has anyone else been having any problems with this?
Thanks
Davinder
0
Comments
Cheers,
David
SmugMug API Developer
My Photos
@devbobo
I tried flushing my DNS cache using: and it made no difference same problems!
But I have done some further investigation and found that sometimes i get the errors when trying to login and other times when I try to logout! My test code is pretty simple:
1.get user object from loging in with password
2.print user id
3.logout
about 9 times out of 10 this code will come back with one of the errors and will work fine once.
any suggestions on where I should look? I guess it could still be some sort of DNS issue???
@vlb804s
Thanks foryour post, at least I know I'm not the only one and I'm not totally crazy. I also tried a different .Net wrapper and had the same problem.
Thanks
Davinder
I've noticed that every time it fails for me it is going to the AkamaiGHost server and when it is successful it uses the Apache server. Also, whether this makes any difference or not, the character set used when I get the failure is ISO-8859-1 and when it succeeds on Apache it uses utf-8.
I also saw in the blogs that a new firmware was added to the load balancer and I am wondering if both of these servers are set up the same. When we are routed to Apache, all is well. AkamaiGHost, never.
Thanks again.
Looking at other posts I noticed that someone said it might be related to going to different servers and that one works and the other one doesn’t. That actually made a lot of sense as they can be configured differently. So tonight, as I got a chance, I checked it out. The same things that he said are true for me. If the server my calls hit is Apache, everything works just fine, as soon as a call goes to AkamaiGHost server, I get a "The remote server returned an error: (500) Internal Server Error". I have attached a tracer to my calls and I can give you the results if that’s of any use.
Hope this helps for a quick fix. Thanks!
Let me know if I can provide tcp dumps / http traces of failures.
Matt
--
Thanks,
David
SmugMug API Developer
My Photos
I have a hosted webserver, so I cannot flush the DNS between the two machines.
Can you tell us what the true IP should be and we can make the connection that way?
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
For two days now it's all working well, all my tests run successfully and the app I use to manage my galleries also works just fine. I've let them run for some time since yesterday to make sure that they always work. As I've noticed, my API calls only hit the Apache server now.
Thanks.