owncloud / notes-iOS-App

:notebook:
Other
100 stars 48 forks source link

App crashes when creating a new note and opening it #47

Closed roymckenzie closed 4 years ago

roymckenzie commented 6 years ago

When creating a new note in the app, the app immediately opens the new note and promptly black-screens and then crashes.

Also, getting a lot of Request failed: method not allowed (405) errors in the slide-down banner.

phedlund commented 6 years ago

Sounds like a permission error on the server. Are Notes working properly using the web interface?

roymckenzie commented 6 years ago

Thanks for getting back to me @phedlund. They are working in the web interface. Any recommendations on where I should look regarding permissions on my end?

phedlund commented 6 years ago

Look in the web server logs and the ownCloud/NextCloud logs.

Arnauec-zz commented 5 years ago

I'm having this issue too, any solution found?

olsins commented 5 years ago

I got the same issue - did anyone find a solution? this is the apache log 89.247.XX.XXX - Username [13/Feb/2019:22:11:50 +0100] "GET /nextcloud/apps/notes/api/v0.2/notes/66904?exclude=title%2Ccontent HTTP/1.1" 200 2173 "-" "iOCNotes/2.1.5 (iPhone; iOS 12.1.2; Scale/2.00)"

olsins commented 5 years ago

I found the solution myself - the QOwnNotesAPI has to be activated in order to make the app working

phedlund commented 4 years ago

Closing as not a bug.

mreiger commented 4 years ago

Hi - I had similar issues lately. Here is what I noticed:

According to the API documentation https://github.com/nextcloud/notes/wiki/API-0.2 the latter is the right way. Which is confusing to me since the GET is successful and only the PUT fails.

From an end user point of view having to add the /ined.php to the base server URL is confusing since the "Nextcloud URL" is just https://nextcloud.example.com in most cases. May I suggest checking the server URL for the appended /index.php and adding it to the API calls if the user did omit it?

phedlund commented 4 years ago

The app does attempt to add /index.php if operations without it fail, but there might be room for some improvement. However, if Nextcloud is configured as documented (in particular https://docs.nextcloud.com/server/17/admin_manual/installation/source_installation.html#pretty-urls) there should not be any issues.