Hi,
We had an issue with one of our databases because of which we had to delete and recreate the database. We couldn't figure out how to provide our own API ( the one in use before recreating the database). So we didn't create any API key at all for our database. But now we can't access the database from our client applications.
We are using build #2945
If we don't provide any API key in connection string, this is the exception/stack trace that we get
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getResponse)
at Raven.Client.Connection.HttpJsonRequest.ReadResponseJson()
at Raven.Client.Connection.ServerClient.DirectBatch(IEnumerable`1 commandDatas, OperationMetadata operationMetadata)
at Raven.Client.Connection.ReplicationInformer.TryOperation[T](Func`2 operation, OperationMetadata operationMetadata, OperationMetadata primaryOperationMetadata, Boolean avoidThrowing, T& result, Boolean& wasTimeout)
at Raven.Client.Connection.ReplicationInformer.ExecuteWithReplication[T](String method, String primaryUrl, OperationCredentials primaryCredentials, Int32 currentRequest, Int32 currentReadStripingBase, Func`2 operation)
at Raven.Client.Connection.ServerClient.ExecuteWithReplication[T](String method, Func`2 operation)
at Raven.Client.Document.DocumentSession.SaveChanges()
In the raven configuration file, we have given admin access to anonymous.
Can you tell why are we getting 403 error?
On a side note: How can add edit the API key so that I can paste own 'secret' in the API key. I want to use an API key that we generated earlier as that is the key that we have communicated to all our consumers.
Regards,
Alex