Questions tagged [ravendb-http]

The RavenDB HTTP API is the wire protocol for communicating with a RavenDB Server. It uses a JSON based REST syntax.

The RavenDB HTTP API is the wire protocol for communicating with a RavenDB Server. It uses a JSON based REST syntax.

For details, review the HTTP API Documentation.

33 questions
6
votes
2 answers

How to make HTTP Patch request to raven db server using golang?

I have written the following code to add a title field to the document 1 in my raven database. url := "http://localhost:8083/databases/drone/docs/1" fmt.Println("URL:>", url) var jsonStr = []byte(`{"title":"Buy cheese and bread for…
Prashant
  • 3,823
  • 3
  • 25
  • 40
6
votes
1 answer

RavenDB, programmatically check whether Server instance is running

I configure my document store in the following way: store = new DocumentStore { Url = serverUrl }; store.Initialize(); I like to know how I can make sure prior or post initialization but before opening a session whether the client is connected to…
Matt
  • 7,004
  • 11
  • 71
  • 117
5
votes
2 answers

Raven.Server.exe Failed to grant rights for listening to http

I have installed RavenDB 2.5.0 as Windows Service. When I try to run Raven.Server.exe as Administrator or not I receive this: Trying to revoke rights for http.sys runas netsh http delete urlacl url=https://+:8080/ Trying to grant rights for…
endri
  • 53
  • 3
4
votes
1 answer

Cannot access RavenDB Management Studio with Embedded Db

I run and initialize an instance using the following code: EmbeddableDocumentStore db = new EmbeddableDocumentStore(); db.DataDirectory = @"C:\RavenDb\"; db.Configuration.HostName = "localhost"; db.Configuration.Port…
Matt
  • 7,004
  • 11
  • 71
  • 117
3
votes
0 answers

How to create Ravendb database using CURL Command

I have resolved this issue. My learnings so far... CURL command accepts thumbprint in the command line instead of certificate files. We need to mention the thumbprint using the certificate store path. To get the certificate store and thumbprint…
Kanna
  • 51
  • 1
3
votes
1 answer

RavenDB Restore Stuck

We are trying to restore Ravendb from the backup file. We are using Raven studio. The restore process copied index files from the backup to the new location but it's stuck at the below step: Esent Restore: Restore Begin Esent Restore: 18 1001 I…
Mangesh Kulkarni
  • 311
  • 1
  • 5
  • 13
3
votes
1 answer

Store new document to specific collection in RavenDB via REST

I'm uploading documents to RavenDB from PowerShell script. Here it is: $Timestamp = (Get-Date).ToBinary() $Url = "http://127.0.0.1:8080/databases/DiskStat/docs" $diskObject = New-Object PSObject @{ "@metadata" = New-Object psobject @{ …
oxfn
  • 6,590
  • 2
  • 26
  • 34
2
votes
0 answers

How do I query a collection or index using REST/http in an embedded RavenDB v3.5?

Firstly I feel like the need to qualify why having to do this on such an old version of RavenDB: We are using Particular ServiceControl for NServiceBus/RabbitMQ message handling, namely error messages. Latest version of ServiceControl (v4.22.0) uses…
Frederik Struck-Schøning
  • 12,981
  • 8
  • 59
  • 68
2
votes
0 answers

what is the Key Value pair to define Replication Factor in the json object

-d '{"DatabaseName": "DB_Name", "ReplicationFactor": "3"}' The replication factor key value pair seems to be wrong and CURL command ignores this value while creating a database and sets the replication factor to 1. Please tell me know the correct…
Kanna
  • 51
  • 1
2
votes
1 answer

How do I find attachments in ravendb 3.5?

I'm currently debugging some code which is supposed to return an attachment for a given document, but no attachment is coming back. Raven studio indicates that there are attachments in the database - it shows me that a number of attachments exist -…
Ben Franklin
  • 626
  • 6
  • 21
2
votes
0 answers

How to create ETL programatically in RavenDB 3.5?

I have a RavenDB database "XYZ" with a collection "Products". On a certain point in my console application. I was to create another RavenDB database "DataStaging_XYZ" and replicate the "Products" collection onto it. Here is how I am creating the…
Sajid Ali
  • 719
  • 2
  • 7
  • 21
2
votes
1 answer

Sending a Client Certificate with the RavenDB Client API

My team is developing a .NET web application that will run across several windows servers and we would like to use RavenDB for persistence. We have a requirement from our client that user access to the RavenDB admin page will require the user to…
Tyler
  • 81
  • 1
  • 3
2
votes
1 answer

How to get a document from Raven using the HTTP API

We have Raven deployed on a server and our .NET code can work with it just fine. When remoted onto the box, I would like to be able to make HTTP calls to Raven through an HTTP client. I can see in Raven studio that I have a document in a collection…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
1 answer

Json Errors in raven 3.5 client

Periodically we receive the following error when saving to a Raven Database. The client and database are v3.5. The solution thus far has been to restart the servers and after that things appear to settle down. The user can go to a different server…
user1730289
  • 273
  • 4
  • 15
1
vote
1 answer

Raven DB Replication Stats

I need to build a Health monitoring component for Raven DB Replication and Periodic Export For Replication: Last Run and Duration For Periodic Export Last Run, Duration, Size of Export Is there a client API much like getting Database Statistics and…
user1730289
  • 273
  • 4
  • 15
1
2 3