-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error fetching floor plan. [ Service Error: Bad Request ] #223
Comments
Exact same issue |
+1 |
also for me, "Download Tiles/floortiles/:buid/:floor_number Fetches the floor plan tiles zip link" will give an 400 error. but Download Base64/floorplans64/:buid/:floor_number works |
How do we fix this? I have a demonstration in less than a week that I need to prepare for. |
Same here...While every building/floor that I created before the server changes is available, I can see anything that I created after that only in the viwer/architect (on Android app I am getting - Error fetching floor plan). I am using the ap.cs.ucy.ac.cy |
Hello, |
This is my Building ID : building_417b84ac-8364-49e5-9d81-e50ba5d431e8_1523627366394 This post : https://ap.cs.ucy.ac.cy/anyplace/floorplans64/building_417b84ac-8364-49e5-9d81-e50ba5d431e8_1523627366394/0 works It appears that the server does not generate the ZIP file to be downloaded |
Thank you for your fast response. Yes, the building is public. Building Info: |
From Android app when call api to download zip file for floor return {"message":"File requested not found","status_code":404,"status":"error"} |
Hello, |
@Costantinos can you let us know what the fix was or upload it to Github? We are running the server locally for our demonstration and would like to get it working. |
Hello @westlakem, You need to put the directory of the tiler into the working directory of the anyplace instance, then fix the permissions for the files and you may need to create a symbolic link. Additionally, you need to install ImageMagick, advancecomp and Python 2.7+. You can install them with the following commands: |
@Costantinos has the tiler been bundled into the downloadable zip yet? Trying real hard not to have to pull down and recompile the whole thing. |
@westlakem, I have uploaded the anyplace tiler as a separate zip, you can download the (tiler)[http://anyplace.cs.ucy.ac.cy/downloads/anyplace_tiler.zip] as a separate directory and move it to the anyplace working directory as I have described early. |
@Costantinos ok... I'll start the process of setting up the dev environment. Thanks! |
I've added the tiler to the public folder, and made sure to install imagemagick and advancecomp on our app server and I'm still getting a 400: If you would like, I can upload the zip that we're launching on AWS, with the caviat that we will need to scrub information about our couch base instance, and server URL. |
@Costantinos I just reuploaded the floorplans, indeed is working but the image is really smaller than on the architect, this has as result for the image to be just in the corner of the building (I am sure I can't explain it well, so, please check the image below).
|
Please try the below and get back if the problem persists: |
Timothee, can you please check if the Android version faces any problem with the latest backend fixes? |
@Alexandratz : for fixing the positioning of the building in Android, follow the link listed above. Also clear your building cache on Android |
Hello @westlakem , You need to put the tiler under the home directory (anyplace_v3) of the project not in the public directory. Your directory should have the following directories and files.
|
Thank you for all your help so far. I'm still getting an error, and i'm not 100% sure why....
But i have the anyplace_tiler in the directory I've verified by SSH that the Procfile:
I would be grateful for any assistance that you could provide. |
Hello, It seems that the .sh file is not executable. Try to apply execute permissions to all the .sh files by using the command |
Hi @Costantinos, It seems like it dose'nt recognize that I have any floors. I would appreciate your help. |
@Costantinos I am running Anyplace Server on LocalHost (built project using IntelliJ) also added Building and Floors, but now When I access the same in Android Client, it shows building name and detect floor but not able to load floor shows error "Error Fetching Floor Plan" |
@Costantinos I'll give that a try over the weekend, but it says it can't find the file, not that it can't execute the file.. |
Still happening on a local server, even though the log shows - after uploading floor:
Strangely, the tiling isn't logged until the Android client requests the floor,. |
I added the zip package and it seems to be working now. |
@erezak need your help regarding the Tiler Problem can you please share your email id or other contact |
I have tried to fix this issue on my local machine and I fixed. However, when I tried to install on another machine the same issue happened again and this time I've done the same things that I did the first time, but it didn't work. I did change the permission on the sh files inside anyplace_tiles, I've installed python 2.7.x, imagemagik 7.x, advancecomp and png package. After all this, still not working... Same error. It seems that the directories floor_plans and radio_maps do not get created. Then the floor does not get saved and therefore there is an error when the app tries to fetch the floor plan. Any thoughts? |
Another thing that I noticed is that when I run on Intellij in development mode, it works fine. But when I run on production mode, it does create the floor_plan directory, but it is inaccessible, and that is cause of all the problems. |
We have tried all the above solutions and still this issue is not resolved. Can you please help with a small write up on what is to be done? |
I changed the implementation to use Files class from NIO package in the
methods that store the floor plans and also in the methods that get them. I
used Files.exists(...) and Files.isReadable(...) instead of file.exists().
I also changed the files.mkdirs() to Files.createDirectory().
Em qua, 25 de jul de 2018 05:24, Sankar Narayanan <notifications@github.com>
escreveu:
… We have tried all the above solutions and still this issue is not resolved.
Can you please help with a small write up on what is to be done?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#223 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHMjr_ZQ5FYPeXnon8Of-Yavfy5Tuh88ks5uKCs3gaJpZM4SvKAk>
.
|
Thanks a lot for the response. Can you please help us with the files where you modified these? We are pretty new to Anyplace and this would be really helpful. |
I am still facing the same issue.Can you suggest some solution regarding this. |
@anyplaceucy |
Floor plan seems to still error out upon uploading to a building. Has anyone come up with a solution yet? |
I am still facing the same problem. This is using the anyplace server. |
Floor plan image is not stored for me as well. Steps I did:
No any errors in logs: Did some one resolve this issue? |
I am using the anyplace server not my own server.
I get an serivce error bad request when I try to fetch the floor plan. I am already using the new backend of the anyplace server. I have no problem fetching old floor plan that was created before. But floor plan that was created after yesterday will give service error bad request. I tried to use the developers and found out that in "Download Tiles/floortiles/:buid/:floor_number Fetches the floor plan tiles zip link" will give an 400 error. I think this might be the case?
Thanks
The text was updated successfully, but these errors were encountered: