Comments (15)
Oh, also want to add (if it wasn't clear) I ran the unit tests in the included Theo XcodeWorkspace, not in my own project.
from neo4j-ios.
I believe that crash was due to there being no data in my database before, the tests are now reaching test_004_successfullyAddNodeWithOutLabels before crashing. Which makes a lot more sense, since I had believed the GET requests were working and the POST were the problem.
from neo4j-ios.
I've found the problem. The headers set by Theo were being changed somewhere before sending the request. I'm going to try to locate where that's happening, but the easy fix was making sure to send application/json header right before the request went out.
If I find that it's an error in the code I'll create a pull request, it may have just been a strange problem with my code.
from neo4j-ios.
that's very strange. I'll start looking there as well. This is just for your POSTS right?
Sent from my iPhone
On Apr 18, 2015, at 11:32 AM, Travis Bogosian [email protected] wrote:
I've found the problem. The headers set by Theo were being changed somewhere before sending the request. I'm going to try to locate where that's happening, but the easy fix was making sure to send application/json header right before the request went out.
If I find that it's an error in the code I'll create a pull request, it may have just been a strange problem with my code.
—
Reply to this email directly or view it on GitHub.
from neo4j-ios.
Put a breakpoint or log the additional headers property in the request class
Sent from my iPhone
On Apr 18, 2015, at 11:32 AM, Travis Bogosian [email protected] wrote:
I've found the problem. The headers set by Theo were being changed somewhere before sending the request. I'm going to try to locate where that's happening, but the easy fix was making sure to send application/json header right before the request went out.
If I find that it's an error in the code I'll create a pull request, it may have just been a strange problem with my code.
—
Reply to this email directly or view it on GitHub.
from neo4j-ios.
Yeah, I added
mutableRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
in the postResource method of Request.swift, where the mutable request is made, and everything was fine afterward.
It was coming out as application/www-x-form-urlencoded when I checked my data packages going out before. Not sure where the change happened, because in the initial construction it was definitely using /json for the .httpRequest.
from neo4j-ios.
I'll create a new branch and if you can issue a PR for this change. It will be a few hours before I get home.
Sent from my iPhone
On Apr 18, 2015, at 11:44 AM, Travis Bogosian [email protected] wrote:
Yeah, I added
mutableRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
in the postResource method of Request.swift, where the mutable request is made, and everything was fine afterward.It was coming out as application/www-x-form-urlencoded when I checked my data packages going out before. Not sure where the change happened, because in the initial construction it was definitely using /json for the .httpRequest.
—
Reply to this email directly or view it on GitHub.
from neo4j-ios.
No problem, will do.
from neo4j-ios.
I created a new branch for your to PR to issue/post-header
from neo4j-ios.
Perfect, I'll PR soon
from neo4j-ios.
Hi again Cory,
I'm having a little trouble. I think I executed a cypher query that was
long-running on my database by accident. Now I can't access the database at
all and all of my queries are timing out. I'm guessing that the database is
still attempting to run the other queries and can't respond to my requests.
Is there anything I can do?
Thanks,
Travis
On Sun, Apr 19, 2015 at 12:04 PM, Cory D. Wiles [email protected]
wrote:
I created a new branch for your to PR to issue/post-header
—
Reply to this email directly or view it on GitHub
#6 (comment).
from neo4j-ios.
Hey @tbogosia,
Looks like there was indeed an issue with your database. I've restarted the instance and you're back up and running again.
Whenever you think there might be an issue with your database, please shoot an email over to [email protected]. We're more than happy to get that sorted out for you. Thanks!
from neo4j-ios.
Wonderful, thanks Jeremy.
Is the issue something I can avoid in the future? Or just a fluke sort of
thing...
On Thu, Jun 11, 2015 at 5:05 PM, Jeremy Kendall [email protected]
wrote:
Hey @tbogosia https://github.com/tbogosia,
Looks like there was indeed an issue with your database. I've restarted
the instance and you're back up and running again.Whenever you think there might be an issue with your database, please
shoot an email over to [email protected]. We're more than happy to
get that sorted out for you. Thanks!—
Reply to this email directly or view it on GitHub
#6 (comment).
from neo4j-ios.
Careful query construction and correct indexes and constraints help avoid this situation. Send your query over to [email protected] and we'll take a look at it for you, if you like.
from neo4j-ios.
Alright, thanks Jeremy. It's a complex one that I've been thinking over for
a bit. I'll send it over now.
On Thu, Jun 11, 2015 at 5:09 PM, Jeremy Kendall [email protected]
wrote:
Careful query construction and correct indexes and constraints help avoid
this situation. Send your query over to [email protected] and we'll
take a look at it for you, if you like.—
Reply to this email directly or view it on GitHub
#6 (comment).
from neo4j-ios.
Related Issues (20)
- Node ID HOT 13
- Node Label Not Getting Created HOT 9
- Error Domain=com.theo.network.error Code=-1011 HOT 22
- Cannot create node - returns nil HOT 11
- Problem recognising Client Class HOT 4
- Cannot create node with label HOT 13
- Unit test 001 failing HOT 6
- Swift 3 exc_bad_instruction - force unwrap of nil? HOT 11
- SPM Support HOT 6
- Tests don't compile on develop/swift-3 HOT 1
- Theo 3.0.0 HOT 13
- Pod install - can't find Theo HOT 1
- Error running examples HOT 2
- Any plan for Swift 4 support? HOT 2
- Carthage and macOS HOT 1
- Problem Installing in iOS Swift 4.0 project HOT 9
- dyld: Library not loaded: @rpath/libswiftCore.dylib HOT 8
- The wrong content-type is being set for POST requests
- Create Relationship Bad Request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j-ios.