Skip to content

[Question][Help] - Update Just the Document; Not Attachment(s) #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mwasson74 opened this issue Jan 11, 2022 · 2 comments
Closed

[Question][Help] - Update Just the Document; Not Attachment(s) #158

mwasson74 opened this issue Jan 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mwasson74
Copy link

When trying to update a property on a document by calling AddOrUpdateAsync(updatedDocument...), the CouchDB server is returning the following:

ex:	{"bad_request"}	System.Exception {CouchDB.Driver.Exceptions.CouchException}
InnerException:	{"Call failed with status code 400 (Bad Request): PUT https://admin:<redacted>@<server>/samplephotoattach___fdni/19ccc58cd18c3d529e98e958de0114d7"}	System.Exception {Flurl.Http.FlurlHttpException}
Message:    "bad_request"	string
Reason: "Invalid attachment data for MyLittleTextDocument.txt"	string
Source:	"CouchDB.NET"	string
StackTrace:
    at CouchDB.Driver.Helpers.RequestsHelper.<SendRequestAsync>d__0`1.MoveNext()
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
    at CouchDB.Driver.CouchDatabase`1.<AddOrUpdateAsync>d__22.MoveNext()
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at EuroOCR.Web.Jobs.SamplePhotoAttach.UploadCouchDbDocumentsJobs.<>c__DisplayClass21_0.<<SyncDocumentToEdm>b__0>d.MoveNext() in C:\\Users\\..\\UploadCouchDbDocumentsJobs.cs:line 375"	string

What am I doing wrong here?

Thanks,

Matt

@matteobortolazzo
Copy link
Owner

Hi, I think nothing wrong,
but another bug.

I didn't test attachments very well to be honest

@matteobortolazzo matteobortolazzo added the bug Something isn't working label Jan 12, 2022
@matteobortolazzo
Copy link
Owner

v3.2.0 Released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants