Skip to content

Conversation

@mpelzsherman
Copy link

Hi - we're trying to render a file using the API, but our requests keep getting redirected.

Can you please take a look at the changes in this pull request and let us know what we're doing wrong?

@mpelzsherman
Copy link
Author

Here is the response we're getting:

$ php render.php 25123346
Array
(
[status] => 302
[headers] => HTTP/1.1 302 Found
Server: nginx
Date: Tue, 12 Feb 2013 21:41:28 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 302
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.0
Location: http://primediadev.floorplanner.com/projects/25123346/render
X-Runtime: 20
Content-Length: 126
Set-Cookie: _fp_session=BAh7BzoMdXNlcl9pZGkE36lwAToPc2Vzc2lvbl9pZCIlODVlMWQ0OGZlNTU1NmYwNjkwOThhODU5YmMzZjJlYzY%3D--98757e2155f6fb8b53c68ffeb520ef1e9362748b; domain=.floorplanner.com; path=/; HttpOnly
Cache-Control: no-cache
[data] => You are being redirected.
)

Fatal error: Uncaught exception 'Floorplanner_Exception' in /Users/mpelzsherman/projects/hd_floorplans/floorplanner-api-php/php/classes/Floorplanner/Project.php:77
Stack trace:
#0 /Users/mpelzsherman/projects/hd_floorplans/floorplanner-api-php/php/render_test/render.php(12): Floorplanner_Project->render(400, 600)
#1 {main}
thrown in /Users/mpelzsherman/projects/hd_floorplans/floorplanner-api-php/php/classes/Floorplanner/Project.php on line 77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant