Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

createConversationThread gives error "The request was not formatted correctly" #32

Open
varunkr opened this issue May 2, 2017 · 1 comment

Comments

@varunkr
Copy link

varunkr commented May 2, 2017

I am trying to create a thread in an existing conversation using the java api.

                        ConversationThread thread = new net.helpscout.api.model.thread.Message();
			thread.setType(ThreadType.Message); // Required
			thread.setBody(event.getMessageBody()); // Required
			thread.setStatus(Status.Closed); // Required

			PersonRef createdBy = new UserRef();
			createdBy.setId(event.getUserId());
			thread.setCreatedBy(createdBy); // Required

			client.createConversationThread(helpscoutTicketId, thread);

The exact error is

java.lang.RuntimeException: net.helpscout.api.exception.InvalidFormatException: The request was not formatted correctly

I don't understand why this is happening. Any ideas? Any help is appreciated. Thanks !!

@bob983
Copy link
Contributor

bob983 commented May 22, 2017

Hi @varunkr. This looks fine to me at the first look, but if you tell me what Help Scout account (company) you used to connect to the API, I might check our logs and hopefully I should be able to find the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants