Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uppass only one error if error happens, fix #100 #107
Conversation
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Aug 3, 2015
|
@desmondmorris can I ask you about code-review for this patch? |
This comment has been minimized.
This comment has been minimized.
|
Thanks @iamstarkov. I do still think, we may want to defer error parsing to client as per that document, it does not actually say that there can only be a single error delivered in that array, it just shows an example where it does. There is also language there that implies that the error response could be unstructured:
I am just trying to be cautious here as this is a breaking change. |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Aug 3, 2015
|
asked about multiply errors in dev forum https://twittercommunity.com/t/array-of-errors-in-error-codes-responses/49286?u=iamstarkov |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Aug 4, 2015
|
I got reply from twitter staff and it seems to be there is a situation, where array can has more than one error =(
|
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Aug 4, 2015
|
suggesting new pull-request with
and changing docs to show that passed errors can be array instead of single error |
This comment has been minimized.
This comment has been minimized.
|
@iamstarkov thanks for digging into this. +1 to your suggested solution. |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Aug 4, 2015
|
while, im not implement it, i want to ask you as a maintainer one more question. this change seems to be breaking change (somebody prob already relying on array of plain error object). is it acceptable or it doesnt worth it? |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Sep 23, 2015
|
After more work on twitter related modules, I strictly convinced that array of errors is the worst thing about this situation. I faced it so many times, since 5 august. Also, I’m sold with "Worst case is there are more than one error and the first request you see error A, fix it for the second request and then see error B." and don’t sold with official answer "it can happen in real world", because:
as a summary I want to suggest to merge this pull-request and release new major version. What do you think? |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Sep 24, 2015
|
@desmondmorris what do you think about it? |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Sep 30, 2015
|
@desmondmorris polite ping) |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Oct 5, 2015
|
hi, should I close it? (I’m still hoping to get it merged) |
This comment has been minimized.
This comment has been minimized.
|
@iamstarkov sorry for the delay. I think your argument here is def worth the consideration. I will take a look at this. |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Oct 9, 2015
|
@desmondmorris it’s okay. hopefully, you will have time for this pull-request now. waiting to develop bunch of new modules dependent on node-twitter this weekend or definitely in the start of next week |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Oct 11, 2015
|
any news? =) |
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Oct 15, 2015
|
for now I switched my packages to twit — it handles errors in proper way |
iamstarkov
referenced this pull request
Nov 3, 2015
Closed
err is an array, and not single error #100
This comment has been minimized.
This comment has been minimized.
iamstarkov
commented
Dec 3, 2015
|
okay |
iamstarkov commentedAug 1, 2015
as titled and checked with my get-tweets package