-
Hi, I have a strange behaviour with CouchDB-Server (latest Version) and I don't have more ideas what may be the problem. I am creating an "CouchDB-Connector" in Flutter. When the connector is logged in, it automatically notifies "http://yxz:5984/_db_updates?feed=continuous&since=now" to be informed about created and deleted databases. I wrote lots of unit tests for all kinds of use cases of the new library. The Test begins with setting up a Couch-Connector which is alive the whole time and mostly used for testing. But for some testcases a temporal second connector is created and logged in. When done, everything is logged out. Mostly this works fine. Some days ago I added another Test-Case which needed a temporal second connector, but this time the notification to "_db_updates" fails. I used Wireshark to check out the messages which are sent between my application and CouchDB and I that is where my question starts.
I don't know what may be going wrong and would appreciate any help, where I may could find a log in CouchDB or so. BTW, I am running CouchDB in docker, and 'docker logs' gave the following:
This "undefined POST" seems to be very often at that position, but I think it is accidently? That would mean, that CouchDB does not give any log regarding the Request? I would appreciate any hint. Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
In the meantime I tried to get more logs... Here a log (combined of my application and CouchDB) of a "working example":
Interesting seems to be, the "undefined POST _session" - log from CouchDB. I think this is related to the login-try? This log is after my application has received the Status 200 of the login-procedure. The last message shows that the response header has been received with status 200. Here is the "not-working-example":
Same behaviour as before regarding the timing of the "POST-log" -- but no Response Header sent?? I would really appreciate if anyone has a clou what could go wrong. Best Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
You are a lifesaver... thanks! Best Regards, PS: Is this an oversight of me? Do I find that information somewhere in the documentation? If yes -- then sorry! |
Beta Was this translation helpful? Give feedback.
-
It's possible to get the request to start earlier if you also use heartbeats. Then the delay until the response start will be no longer than one heartbeat.
I added the (#waiting... 10 seconds in the there) |
Beta Was this translation helpful? Give feedback.
-
Hi, I am a nice application guy sending a nice and well-formed request to some server guy -- and he just ignores me? That is not very polite. He could at least confirm that he heard me, even if he has nothing special to say at the moment... just silence could also mean, something went wrong. So +1 for changing (or should I say correcting) this behaviour. Best Regards, |
Beta Was this translation helpful? Give feedback.
/_db_updates?feed=continuous&since=now
will not start the http response until there is a new change. So your "not working" examples coincide with a time where no databases are being created/deleted/updated.