Avatar image for comictagger
#1 Edited by comictagger (39 posts) - - Show Bio

This is odd, and I'm not sure where the issue is.

I have code that worked before, and I don't know if I need to change something, or it's an issue on the CV side.

I am requesting issue data with an URL that looks like this:


If I manually past the URL into a browser, I get the expect JSON response. However, my program is getting a response that is some HTML that looks like like this:


<head><title>301 Moved Permanently</title></head>

<body bgcolor="white">

<center><h1>301 Moved Permanently</h1></center>




It's weird because other fetches that are done in similar fashion are working fine. Is it a cookie issue, possibly? Any ComicVine API gurus have any suggestions for me?


Avatar image for comictagger
#2 Posted by comictagger (39 posts) - - Show Bio

My bad!

Looks like the QT module I was using for an asynchronous fetch was not automatically following a redirect, like I thought it would.

I changed my requesting URL "http://api.comicvine.com" to "http://www.comicvine.com/api" and it's just working.