arthur-debert / google-code-issues-migrator

A simple script to migrate issues from google code to github.
67 stars 56 forks source link

api route not recognized #6

Closed rc closed 12 years ago

rc commented 12 years ago

Hi,

trying your script, I keep getting the "api route not recognized" error when it tries posting the issues to github. The exact message is:

INFO:root:will post issue:158 - Primer review request INFO:root:issue did not exist DEBUG:root:URL: 'https://github.com/api/v2/json/issues/open/sfepy' POST_DATA: 'login=rc&token=631a541a48309f10e6d6f90e6d52c5bf&body=%3Cpre%3E%0AThe+analytic+solution+in+the+primer+example+of+tensile+test+of+asphalt%2C+is+not+seems+to+be+an+actual+analytic+solution%2C+as+it+depends+on+the+nodal+forces.+So+the+result+of+the+solution+varies+with+mesh+refinement.+For+the+same+geometry+and+material+property%2C+analytic+solution+will+not+differ%2C+even+for+extensive+mesh+refinement.+it+will+always+be+the+same.+the+analytic+solution+is+derived+from+solid+mechanics+and+there%27s+no+function+of+mesh+or+element.+for+that+specific+example%2C+Analytic+solution+would+be+based+on+solid+mechanics+knowledge%2C+getting+the+vertical+and+horizontal+stress+at+the+center+of+the+disk+due+to+application+of+1mm+displacement+at+the+top.%0D%0A%0A%3C%2Fpre%3E%3C%2Fbr%3EOriginal+link%3A+http%3A%2F%2Fcode.google.com%2Fp%2Fsfepy%2Fissues%2Fdetail%3Fid%3D158&title=158+-+Primer+review+request+' RESPONSE_TEXT: '{"error":"api route not recognized"}'

It seems that github now uses API v3, so it would be great, if you had time and will to update your tool. Thanks!

Also, when reading the google issues, it says (for example):

INFO:root:Issue #158: Primer review request INFO:root:GET http://code.google.com/p/sfepy/issues/detail?id=158 INFO:root:got comments 0

The text "comments 0" is there for every issue, even if there are comments. (This might be ok, as I do not know what would be posted to github.)

arthur-debert commented 12 years ago

Hi Rc.

This script was a one off, so likely it's out of date. Even though I have no longer any need for it, I'd be happy to merge pull requests that make it work on the current apis.

Best

rc commented 12 years ago

Hi Arthur,

in the meantime, I have found [1], which works for me...

[1] https://github.com/alexrudnick/migrate-googlecode-issues

joelpt commented 12 years ago

I believe this is working fine in latest version.