in order to detect plagiarism, I'm using Copyleaks API. I successfully scan the file referring to this helpful link.
By running this main class, I got this trace:
Logged successfully! Token: models.response.CopyleaksAuthToken@411f53a0Submitting a new file... Send to scanning You will be notified, using your webhook, once the scan was completed.
command failed with status Code:409 jdk.internal.net.http.common.MinimalFuture@131ef10[Completed normally] (id=125)
models.exceptions.CommandException: command failed with status Code:409 jdk.internal.net.http.common.MinimalFuture@131ef10[Completed normally] (id=125) at classes.Copyleaks.export(Copyleaks.java:314) at *** (Example.java:153)
It seems stuck on
Copyleaks.export(token, scanId, exportId, exportModel); Looks like not recognize the https://your.server/webhook
I have created a webhook via pipeline
After execute the API POST via postman https://api.copyleaks.com/v3/downloads/scanId/export/exportId
I got 204 No Content
after execute the API GET https://api.copyleaks.com/v3/downloads/lol5/report.pdf, I got the PDF uploaded on Uploaded: 29/1/2019 and not the expected one.
Have you please any idea about solving this issue ?. Any suggestion will be appreciated.
Seems like you are getting HTTP response code 409 (Conflict) when submitting the file.
Please take a look on this documentation page. According to it, you will get Conflict problem if the scan ID you trying to submit, is already submitted before.
Assuming you are using the sample code, in order to change the scan id - you will need to change this line into something unique: