insidewhy opened a new issue, #306:
URL: https://github.com/apache/couchdb-nano/issues/306

   We've been using nano 8 and 9 for a while and everything was working well. 
Since switching to nano 10 even the most basic request doesn't work:
   
   ```typescript
       import Nano from "nano";
       const nano = Nano("http://localhost:5984";);
           const nano = Nano("http://localhost:5984";);
       await nano.db
         .use("beacons")
         .insert({
           _id: new Date().toString(),
         })
         .then(() => {
           console.log("created");
         })
         .catch(e => {
           console.log("error", e);
         });
   ```
   
   Everytime we get a log `Error: error happened in your connection. Reason: 
Network Error`. We also see this console message logged:
   
   ```
   Error: Response for preflight has invalid HTTP status code 405
   ```
   
   After further debugging it looks like axios is sending an `OPTIONS` request 
first, but couch doesn't support `OPTIONS` hence the `405`.
   
   Our couchdb config looks like this:
   
   ```
   [log]
   level = error
   
   writer = stdout
   
   [cluster]
   n=1
   q=1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to