Weird one (http/500 error)

Avatar image for mabster
mabster

27

Forum Posts

5

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By mabster
Avatar image for mabster
mabster

27

Forum Posts

5

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By mabster

Hi again!

On a related note: The HTTP status code that you're returning in the event of an error is 200/OK (according to firefox, anyway)! Can you change that so that when a 500 error occurs you return 500 as the status code? That'll make it easier to catch from code.

Thanks,
Matt

Avatar image for captain_cascader
Captain Cascader

1424

Forum Posts

3234

Wiki Points

112610

Followers

Reviews: 3

User Lists: 3

#3  Edited By Captain Cascader

I'll pass this over to Andy. Out of curiosity, what are you working on? Anything we can do to help?

Avatar image for andy
andy

70

Forum Posts

85

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#4  Edited By andy

This is fixed.

Avatar image for mabster
mabster

27

Forum Posts

5

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#5  Edited By mabster

Thanks Lord Sedrik! What was it that caused the problem? Sounded like a weird one!

Cascader: I'm working on some early spikes on ComicVine integration for Comicster. This'll be the new Windows Presentation Foundation version of Comicster that isn't released yet - I want to make the online API a plug-in sysem so users can choose between my own db, ComicVine's, or whoever else comes to the party.

Essentially I'm using WCF (Windows Communication Foundation) which has some great support for REST APIs - lets me call .NET methods which pass the method call on to your site as URIs and return XElement instances (XML). I can then parse the XML back into native Comicster objects (Issue, Character, Title, Publisher etc).

Avatar image for captain_cascader
Captain Cascader

1424

Forum Posts

3234

Wiki Points

112610

Followers

Reviews: 3

User Lists: 3

#6  Edited By Captain Cascader

Cool duder. Yell if you need any help.

Avatar image for mabster
mabster

27

Forum Posts

5

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#7  Edited By mabster

Just blogged about the API and my fledgling .NET client implementation.

Avatar image for chade
Chade

1

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#8  Edited By Chade

Hi.

Is something wrong with the singular fetch api (for example "/character") or am I somehow using it wrong? I'm getting "500 internal server error" messages, if it's supposed to find something.
If it finds nothing, then it returns the normal xml return message that informs me that nothing is found.

I'm simply using the api like this:
http://api.comicvine.com/characters/?api_key=mykeyhere&gender=M&sort=birth_date&format=xml    <-- straightforward copy/paste from api samples with my own api-key. gender and sort parameters are not in use, but it works.
and manually selecting the first characters id 1253 and using it in query:
http://api.comicvine.com/character/1253/?api_key=mykeyhere&format=xml    <-- straightforward copy/paste from api samples with my own api-key

 -- C

PS. any news on the filter fields on listing apis? Otherwise true search would require a full set download (atleast with the fields used in query).

Avatar image for sahilsakhuja
sahilsakhuja

1

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#9  Edited By sahilsakhuja