ProofHub / api_v3

ProofHub Bolt's API
18 stars 8 forks source link

Header block error. #1

Closed kakuzops closed 5 years ago

kakuzops commented 5 years ago

Hi there So when i try to integrate a page with the API i receive this error code "{code: 1201, message: "Incomplete headers"}", but i passing all headers are needed and i realy don't know how i recieve th error. here my code example. carbon 1 (i changed the API-KEY just to send this issue).

thx for help

ProofHub commented 5 years ago

Hi Leonardo,

We will get this checked and will get back to you as soon as possible.

Thank you,

Ryan ProofHub Team

Download the mobile app!

On Wed, Jan 30, 2019 at 11:20 PM Leonardo da Silva Nogueira < notifications@github.com> wrote:

Hi there So when i try to integrate a page with the API i receive this error code "{code: 1201, message: "Incomplete headers"}", but i passing all headers are needed and i realy don't know how i recieve th error. here my code example. [image: carbon] https://user-images.githubusercontent.com/8216101/52001408-7a81aa80-24a6-11e9-9ccd-c768e9d29008.png

(i changed the API-KEY just to send this issue).

thx for help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBKSWjZiM8wBdXIINYCYc_Vvak1_4ks5vIdt6gaJpZM4aau2L .

ProofHub commented 5 years ago

Hi Leonardo,

Could you please let us know are you sending this request for insert, update or something else?

What method are you using with this request? All this information will help us to assist you better.

Udit ProofHub Team

Download the mobile app

https://goo.gl/grkB6n https://goo.gl/p8Emsd

On Wed, Jan 30, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

Hi there So when i try to integrate a page with the API i receive this error code "{code: 1201, message: "Incomplete headers"}", but i passing all headers are needed and i realy don't know how i recieve th error. here my code example. [image: carbon] https://user-images.githubusercontent.com/8216101/52001408-7a81aa80-24a6-11e9-9ccd-c768e9d29008.png

(i changed the API-KEY just to send this issue).

thx for help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBKSWjZiM8wBdXIINYCYc_Vvak1_4ks5vIdt6gaJpZM4aau2L .

kakuzops commented 5 years ago

Hi proof, so the method i'm using is POST to create a new "todo-list", the get method are ok but the post returns the error that i mentioned.

ProofHub commented 5 years ago

Hi Leonardo,

Could you please share the complete HTTPS POST request will all the parameters you are sending? It will help us to find a quick fix.

Udit ProofHub Team

Download the mobile app

https://goo.gl/grkB6n https://goo.gl/p8Emsd

On Thu, Jan 31, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

Hi proof, so the method i'm using is POST to create a new "todo-list", the get method are ok but the post returns the error that i mentioned.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-459291557, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBMzU3TSowoLMcdLpMKX3Ueg8B5Zyks5vIsMMgaJpZM4aau2L .

kakuzops commented 5 years ago

Hi, here the form's i call and send information carbon 2 carbon 3

ProofHub commented 5 years ago

Hi Leonardo,

You are using the wrong URL to post the data.

It should be like: return http.post( 'PROJECT_ID/todolist/TODOLIST_ID/tasks/TASK_ID' )

Also, please let us know what exactly are you posting on the task? Is it a comment, a subtask or something else?

Please see all endpoints and documentation related to tasks here: https://github.com/ProofHub/api_v3/blob/master/sections/tasks.md

Let me know if you have any questions.

Udit ProofHub Team

On Fri, Feb 1, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

Hi, here the form's i call and send information [image: carbon 2] https://user-images.githubusercontent.com/8216101/52124611-f4ce3e00-2610-11e9-9798-faa6aea97392.png [image: carbon 3] https://user-images.githubusercontent.com/8216101/52124610-f4ce3e00-2610-11e9-9459-b2a01658d4f7.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-459715924, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBJoB1K3MSCxJDO6LHJpcd8VSikzYks5vJDswgaJpZM4aau2L .

kakuzops commented 5 years ago

Hi , sorry for delay.

The ideia is create a TASK inside the todo-list, but same problem when i pass the parameters i recieve the "Incomplete headers".

Again the method post.

carbon 4

I think i missing a parameter, but i pass parameter iqual the api docs, https://github.com/ProofHub/api_v3/blob/master/sections/tasks.md#create-task

ProofHub commented 5 years ago

Hi Leonardo,

We will check this and will get back to you.

Thank you,

Ryan ProofHub Team

Download the mobile app!

On Thu, Feb 14, 2019, Leonardo da Silva Nogueira notifications@github.com wrote:

Hi , sorry for delay.

The ideia is create a TASK inside the todo-list, but same problem when i pass the parameters i recieve the "Incomplete headers".

Again the method post.

[image: carbon 4] https://user-images.githubusercontent.com/8216101/52801102-51474980-3064-11e9-9d9e-7d14d253b966.png

I think i missing a parameter, but i pass parameter iqual the api docs, https://github.com/ProofHub/api_v3/blob/master/sections/tasks.md#create-task

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-463692898, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBFFRT2J5VzO9GWmpMnXOetT5DDRaks5vNY4kgaJpZM4aau2L .

ProofHub commented 5 years ago

Hi Leonardo,

Thanks for writing in.

Please share with us the entire code that you've written to create a task inside a task list. It will enable the concerned team to look closely. -- Adi

ProofHub Team

Download the mobile app

On Thu, Feb 14, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

Hi , sorry for delay.

The ideia is create a TASK inside the todo-list, but same problem when i pass the parameters i recieve the "Incomplete headers".

Again the method post.

[image: carbon 4] https://user-images.githubusercontent.com/8216101/52801102-51474980-3064-11e9-9d9e-7d14d253b966.png

I think i missing a parameter, but i pass parameter iqual the api docs, https://github.com/ProofHub/api_v3/blob/master/sections/tasks.md#create-task

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-463692898, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBFFRT2J5VzO9GWmpMnXOetT5DDRaks5vNY4kgaJpZM4aau2L .

kakuzops commented 5 years ago

Here the code in gist, in the code i changed key to - for privacity. https://gist.github.com/kakuzops/53015ea3cb5e5316d8a5b0e523c25303

thx for supporting.

ProofHub commented 5 years ago

Hi Leonardo,

The concerned team looked into your code and found an error in your post request. In it you've written "post('2301042557/todolist/68486313569/tasks')". In it you've mentioned "todolist" which is incorrect as it should be "todolists". Please make this change and try again. For further reference please check https://github.com/ProofHub/api_v3/blob/master/sections/tasks.md#create-task . -- Adi

ProofHub Team

Download the mobile app

On Fri, Feb 15, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

Here the code in gist, in the code i changed key to - for privacity. https://gist.github.com/kakuzops/53015ea3cb5e5316d8a5b0e523c25303

thx for supporting.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-464005829, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBL0aeqsCIUdUrNbqJQ8egGuS31GYks5vNpa5gaJpZM4aau2L .

kakuzops commented 5 years ago

The post methods chaged but the same error, i recieve code :1201 and Incomplete headers i think is missing something but i passe the same iqual in docs

kakuzops commented 5 years ago

In the headers i recieved the Status code 200, but the same error code 1201

ProofHub commented 5 years ago

Hi Leonardo,

Could you please share your POST requests and the parameters you are sending along with it?

This will help us to assist you better.

Udit ProofHub Team

Download the mobile app

https://goo.gl/grkB6n https://goo.gl/p8Emsd

On Fri, Feb 15, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

In the headers i recieved the Status code 200, but the same error code 1201

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-464093328, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBOA80M4bZi8VcnKSzvbnlsxtgmOSks5vNtQDgaJpZM4aau2L .

kakuzops commented 5 years ago

Hello, in the gist has the comand i send, var task {} is the params

ProofHub commented 5 years ago

Hi Leonardo,

  1. Please correct 'todolist' to 'todolists'.
  2. The Error Code '1201' is sent when 'content type' header is incorrect.
  3. Below is the sample code we tested based on your inputs and it's working fine. You can adapt your code to match.

=====================

=====================

Let us know if you face any other error code and we'd love to help. :)

Udit ProofHub Team

Download the mobile app

https://goo.gl/grkB6n https://goo.gl/p8Emsd

On Mon, Feb 18, 2019 Leonardo da Silva Nogueira notifications@github.com wrote:

Hello, in the gist has the comand i send, var task {} is the params

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ProofHub/api_v3/issues/1#issuecomment-464820854, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4BBBrUkzj1U-NgAhUsumiq3bSKZyobks5vOuNzgaJpZM4aau2L .

kakuzops commented 5 years ago

Hi, sorry for the delay in the response. Everything is fine and working well. Thanks for the support and help.