Asana Integeration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

480 lines
65 KiB

3 years ago
  1. 2021-08-10T18:31:29.360+0800 cmd/tasks.go:13 started ...
  2. 2021-08-10T18:31:29.360+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  3. 2021-08-10T18:31:30.541+0800 task/task.go:64 [�]new task ID:
  4. 2021-08-10T18:31:30.544+0800 cmd/tasks.go:36 succeeded, task gid:
  5. 2021-08-10T18:31:30.550+0800 cmd/tasks.go:39 completed ...
  6. 2021-08-10T18:40:09.261+0800 cmd/tasks.go:13 started ...
  7. 2021-08-10T18:40:09.261+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  8. 2021-08-10T18:40:10.619+0800 task/task.go:68 response status: 400
  9. 2021-08-10T18:40:10.620+0800 task/task.go:70 unexpected response
  10. git.drinkme.beer/yinghe/log.Errorf
  11. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  12. asana/module/task.(*Request).Create
  13. G:/dev/go/git.drinkme.beer/yinghe/asana/module/task/task.go:70
  14. main.main
  15. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:35
  16. runtime.main
  17. E:/go/src/runtime/proc.go:204
  18. 2021-08-10T18:40:10.623+0800 cmd/tasks.go:37 failed to create new task: unexpected response
  19. git.drinkme.beer/yinghe/log.Errorf
  20. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  21. main.main
  22. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:37
  23. runtime.main
  24. E:/go/src/runtime/proc.go:204
  25. 2021-08-10T18:40:10.623+0800 cmd/tasks.go:42 completed ...
  26. 2021-08-10T18:41:29.865+0800 cmd/tasks.go:13 started ...
  27. 2021-08-10T18:41:29.866+0800 task/task.go:60 request: {"resource_subtype":"default_task","assignee":"1199521781039350","name":"Tue Aug 10 10:41:29 2021 Testing","completed":false,"due_on":"2021-08-17","linked":false,"notes":"Testing - Tue, 10 Aug 2021 10:41:29 UTC","start_on":"2021-08-10","custom_fields":{"1199521775380609":"1199521775380611","1200366443430274":"1200366443431311","1200750482997339":"20210810131701","1200753569394602":"1200753569396679"},"projects":["1200750482997336"],"workspace":"916657163525497"}
  28. 2021-08-10T18:41:29.867+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  29. 2021-08-10T18:41:31.580+0800 util/http.go:142 response: {"errors":[{"message":"You should specify one of workspace, parent, projects","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}
  30. 2021-08-10T18:41:31.582+0800 task/task.go:70 response status: 400
  31. 2021-08-10T18:41:31.593+0800 task/task.go:72 unexpected response
  32. git.drinkme.beer/yinghe/log.Errorf
  33. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  34. asana/module/task.(*Request).Create
  35. G:/dev/go/git.drinkme.beer/yinghe/asana/module/task/task.go:72
  36. main.main
  37. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:35
  38. runtime.main
  39. E:/go/src/runtime/proc.go:204
  40. 2021-08-10T18:41:31.596+0800 cmd/tasks.go:37 failed to create new task: unexpected response
  41. git.drinkme.beer/yinghe/log.Errorf
  42. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  43. main.main
  44. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:37
  45. runtime.main
  46. E:/go/src/runtime/proc.go:204
  47. 2021-08-10T18:41:31.598+0800 cmd/tasks.go:42 completed ...
  48. 2021-08-10T18:45:14.701+0800 cmd/tasks.go:13 started ...
  49. 2021-08-10T18:45:14.702+0800 task/task.go:70 request: {"data":{"resource_subtype":"default_task","assignee":"1199521781039350","name":"Tue Aug 10 10:45:14 2021 Testing","completed":false,"due_on":"2021-08-17","linked":false,"notes":"Testing - Tue, 10 Aug 2021 10:45:14 UTC","start_on":"2021-08-10","custom_fields":{"1199521775380609":"1199521775380611","1200366443430274":"1200366443431311","1200750482997339":"20210810131701","1200753569394602":"1200753569396679"},"projects":["1200750482997336"],"workspace":"916657163525497"}}
  50. 2021-08-10T18:45:14.704+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  51. 2021-08-10T18:45:22.727+0800 util/http.go:142 response: {"data":{"gid":"1200757350074250","projects":[{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"}],"resource_type":"task","created_at":"2021-08-10T10:45:20.542Z","modified_at":"2021-08-10T10:45:20.542Z","name":"Tue Aug 10 10:45:14 2021 Testing","notes":"Testing - Tue, 10 Aug 2021 10:45:14 UTC","assignee":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"completed":false,"assignee_status":"inbox","completed_at":null,"due_on":"2021-08-17","due_at":null,"resource_subtype":"default_task","start_on":"2021-08-10","start_at":null,"tags":[],"workspace":{"gid":"916657163525497","resource_type":"workspace","name":"yuansfer.com"},"num_hearts":0,"num_likes":0,"permalink_url":"https://app.asana.com/0/1200750482997336/1200757350074250","followers":[{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"}],"parent":null,"hearted":false,"hearts":[],"assignee_section":{"gid":"1200524821166545","resource_type":"section","name":"Recently assigned"},"liked":false,"likes":[],"memberships":[{"project":{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"},"section":{"gid":"1200753569417613","resource_type":"section","name":"Backlog"}}],"custom_fields":[{"gid":"1200366443430274","resource_type":"custom_field","resource_subtype":"enum","type":"enum","name":"Ticket Type","enabled":true,"enum_value":{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},"display_value":"Merchant Profile Updates","enum_options":[{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},{"gid":"1200366443431316","resource_type":"enum_option","enabled":true,"name":"Transaction Errors","color":"red"},{"gid":"1200366443431388","resource_type":"enum_option","enabled":true,"name":"Product Requests","color":"orange"},{"gid":"1200366443431401","resource_type":"enum_option","enabled":true,"name":"Declined Merchant/Disabled Account","color":"yellow-orange"},{"gid":"1200366443432434","resource_type":"enum_option","enabled":true,"name":"Bug Fixes","color":"yellow"},{"gid":"1200366464813839","resource_type":"enum_option","enabled":true,"name":"Internal Development Project","color":"yellow-green"},{"gid":"1200680513739265","resource_type":"enum_option","enabled":true,"name":"Feedback","color":"blue-green"}],"created_by":{"gid":"1200057682745929","resource_type":"user","name":"Jeremy Jones"}},{"gid":"1199521775380609","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Priority","enabled":true,"enum_value":{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},"display_value":"Medium","enum_options":[{"gid":"1199521775380610","resource_type":"enum_option","enabled":true,"name":"High","color":"red"},{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},{"gid":"1199521775380612","resource_type":"enum_option","enabled":true,"name":"Low","color":"green"}]},{"gid":"1200107390884071","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Product stage","enabled":true,"enum_value":null,"display_value":null,"enum_options":[{"gid":"1200107390884072","resource_type":"enum_option","enabled":true,"name":"Spec needed","color":"none"},{"gid":"1200107390884073","resource_type":"enum_option","enabled":true,"name":"Design ready","color":"none"},{"gid":"1200107390884074","resource_type":"enum_option","enabled":true,"name":"Eng ready","color":"none"},{"gid":"1200107390884075","resource_type":"enum_option","enabled":true,"name":"QA ready","color":"none"},{"gid":"1200107390884076","resource_type":"enum_option","enabled":true,"name":"Marketing ready","color":"none"}]},{"gid":"1200128693528351","resource_type":"custom_field","resource_subtype":"enum","type":"enum","name":"Status","enabled":true,"enum_value":null,"display_
  52. 2021-08-10T18:45:22.732+0800 task/task.go:80 response status: 201
  53. 2021-08-10T18:45:22.745+0800 task/task.go:92 [�]new task ID:
  54. 2021-08-10T18:45:22.746+0800 cmd/tasks.go:39 succeeded, task gid:
  55. 2021-08-10T18:45:22.747+0800 cmd/tasks.go:42 completed ...
  56. 2021-08-11T05:44:42.850+0800 cmd/tasks.go:26 started ...
  57. 2021-08-11T05:44:42.851+0800 cmd/tasks.go:35 ticket No.: �
  58. 2021-08-11T05:44:42.851+0800 task/task.go:82 request: {"data":{"resource_subtype":"default_task","assignee":"1199521781039350","name":"#�-Tue Aug 10 21:44:42 2021-Merchant Profile Updates","completed":false,"due_on":"2021-08-18","linked":false,"notes":"Testing - Tue, 10 Aug 2021 21:44:42 UTC","start_on":"2021-08-11","custom_fields":{"1199521775380609":"1199521775380611","1200366443430274":"1200366443431311","1200750482997339":"�","1200753569394602":"1200753569396679"},"projects":["1200750482997336"],"workspace":"916657163525497"}}
  59. 2021-08-11T05:44:42.851+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  60. 2021-08-11T05:44:46.627+0800 util/http.go:142 response: {"data":{"gid":"1200762320061738","projects":[{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"}],"resource_type":"task","created_at":"2021-08-10T21:44:45.977Z","modified_at":"2021-08-10T21:44:45.977Z","name":"#�-Tue Aug 10 21:44:42 2021-Merchant Profile Updates","notes":"Testing - Tue, 10 Aug 2021 21:44:42 UTC","assignee":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"completed":false,"assignee_status":"inbox","completed_at":null,"due_on":"2021-08-18","due_at":null,"resource_subtype":"default_task","start_on":"2021-08-11","start_at":null,"tags":[],"workspace":{"gid":"916657163525497","resource_type":"workspace","name":"yuansfer.com"},"num_hearts":0,"num_likes":0,"permalink_url":"https://app.asana.com/0/1200750482997336/1200762320061738","followers":[{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"}],"parent":null,"hearted":false,"hearts":[],"assignee_section":{"gid":"1200524821166545","resource_type":"section","name":"Recently assigned"},"liked":false,"likes":[],"memberships":[{"project":{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"},"section":{"gid":"1200753569417613","resource_type":"section","name":"Backlog"}}],"custom_fields":[{"gid":"1200366443430274","resource_type":"custom_field","resource_subtype":"enum","type":"enum","name":"Ticket Type","enabled":true,"enum_value":{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},"display_value":"Merchant Profile Updates","created_by":{"gid":"1200057682745929","resource_type":"user","name":"Jeremy Jones"},"enum_options":[{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},{"gid":"1200366443431316","resource_type":"enum_option","enabled":true,"name":"Transaction Errors","color":"red"},{"gid":"1200366443431388","resource_type":"enum_option","enabled":true,"name":"Product Requests","color":"orange"},{"gid":"1200366443431401","resource_type":"enum_option","enabled":true,"name":"Declined Merchant/Disabled Account","color":"yellow-orange"},{"gid":"1200366443432434","resource_type":"enum_option","enabled":true,"name":"Bug Fixes","color":"yellow"},{"gid":"1200366464813839","resource_type":"enum_option","enabled":true,"name":"Internal Development Project","color":"yellow-green"},{"gid":"1200680513739265","resource_type":"enum_option","enabled":true,"name":"Feedback","color":"blue-green"},{"gid":"1200760425076272","resource_type":"enum_option","enabled":true,"name":"Others","color":"cool-gray"}]},{"gid":"1199521775380609","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Priority","enabled":true,"enum_value":{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},"display_value":"Medium","enum_options":[{"gid":"1199521775380610","resource_type":"enum_option","enabled":true,"name":"High","color":"red"},{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},{"gid":"1199521775380612","resource_type":"enum_option","enabled":true,"name":"Low","color":"green"}]},{"gid":"1200107390884071","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Product stage","enabled":true,"enum_value":null,"display_value":null,"enum_options":[{"gid":"1200107390884072","resource_type":"enum_option","enabled":true,"name":"Spec needed","color":"none"},{"gid":"1200107390884073","resource_type":"enum_option","enabled":true,"name":"Design ready","color":"none"},{"gid":"1200107390884074","resource_type":"enum_option","enabled":true,"name":"Eng ready","color":"none"},{"gid":"1200107390884075","resource_type":"enum_option","enabled":true,"name":"QA ready","color":"none"},{"gid":"1200107390884076","resource_type":"enum_option","enabled":true,"name":"Marketing ready","color":"none"}]},{"gid":"1200128693528351"
  61. 2021-08-11T05:44:46.656+0800 task/task.go:92 response status: 201
  62. 2021-08-11T05:44:46.708+0800 task/task.go:105 [�]new task ID:1200762320061738
  63. 2021-08-11T05:44:46.708+0800 cmd/tasks.go:58 succeeded, task gid: 1200762320061738
  64. 2021-08-11T05:44:46.714+0800 cmd/tasks.go:28 completed ...
  65. 2021-08-11T05:50:03.261+0800 cmd/tasks.go:27 started ...
  66. 2021-08-11T05:50:03.261+0800 cmd/tasks.go:38 ticket No.: 1628632203
  67. 2021-08-11T05:50:03.263+0800 task/task.go:82 request: {"data":{"resource_subtype":"default_task","assignee":"1199521781039350","name":"#1628632203-Tue Aug 10 21:50:03 2021-Merchant Profile Updates","completed":false,"due_on":"2021-08-18","linked":false,"notes":"Testing - Tue, 10 Aug 2021 21:50:03 UTC","start_on":"2021-08-11","custom_fields":{"1199521775380609":"1199521775380611","1200366443430274":"1200366443431311","1200750482997339":"1628632203","1200753569394602":"1200753569396679"},"projects":["1200750482997336"],"workspace":"916657163525497"}}
  68. 2021-08-11T05:50:03.266+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  69. 2021-08-11T05:50:06.961+0800 util/http.go:142 response: {"data":{"gid":"1200762462637997","projects":[{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"}],"resource_type":"task","created_at":"2021-08-10T21:50:06.313Z","modified_at":"2021-08-10T21:50:06.313Z","name":"#1628632203-Tue Aug 10 21:50:03 2021-Merchant Profile Updates","notes":"Testing - Tue, 10 Aug 2021 21:50:03 UTC","assignee":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"completed":false,"assignee_status":"inbox","completed_at":null,"due_on":"2021-08-18","due_at":null,"resource_subtype":"default_task","start_on":"2021-08-11","start_at":null,"tags":[],"workspace":{"gid":"916657163525497","resource_type":"workspace","name":"yuansfer.com"},"num_hearts":0,"num_likes":0,"permalink_url":"https://app.asana.com/0/1200750482997336/1200762462637997","followers":[{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"}],"parent":null,"hearted":false,"hearts":[],"assignee_section":{"gid":"1200524821166545","resource_type":"section","name":"Recently assigned"},"liked":false,"likes":[],"memberships":[{"project":{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"},"section":{"gid":"1200753569417613","resource_type":"section","name":"Backlog"}}],"custom_fields":[{"gid":"1200366443430274","resource_type":"custom_field","resource_subtype":"enum","type":"enum","name":"Ticket Type","enabled":true,"enum_value":{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},"display_value":"Merchant Profile Updates","created_by":{"gid":"1200057682745929","resource_type":"user","name":"Jeremy Jones"},"enum_options":[{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},{"gid":"1200366443431316","resource_type":"enum_option","enabled":true,"name":"Transaction Errors","color":"red"},{"gid":"1200366443431388","resource_type":"enum_option","enabled":true,"name":"Product Requests","color":"orange"},{"gid":"1200366443431401","resource_type":"enum_option","enabled":true,"name":"Declined Merchant/Disabled Account","color":"yellow-orange"},{"gid":"1200366443432434","resource_type":"enum_option","enabled":true,"name":"Bug Fixes","color":"yellow"},{"gid":"1200366464813839","resource_type":"enum_option","enabled":true,"name":"Internal Development Project","color":"yellow-green"},{"gid":"1200680513739265","resource_type":"enum_option","enabled":true,"name":"Feedback","color":"blue-green"},{"gid":"1200760425076272","resource_type":"enum_option","enabled":true,"name":"Others","color":"cool-gray"}]},{"gid":"1199521775380609","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Priority","enabled":true,"enum_value":{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},"display_value":"Medium","enum_options":[{"gid":"1199521775380610","resource_type":"enum_option","enabled":true,"name":"High","color":"red"},{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},{"gid":"1199521775380612","resource_type":"enum_option","enabled":true,"name":"Low","color":"green"}]},{"gid":"1200107390884071","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Product stage","enabled":true,"enum_value":null,"display_value":null,"enum_options":[{"gid":"1200107390884072","resource_type":"enum_option","enabled":true,"name":"Spec needed","color":"none"},{"gid":"1200107390884073","resource_type":"enum_option","enabled":true,"name":"Design ready","color":"none"},{"gid":"1200107390884074","resource_type":"enum_option","enabled":true,"name":"Eng ready","color":"none"},{"gid":"1200107390884075","resource_type":"enum_option","enabled":true,"name":"QA ready","color":"none"},{"gid":"1200107390884076","resource_type":"enum_option","enabled":true,"name":"Marketing ready","color":"none"}]},{"gid":"1200128693
  70. 2021-08-11T05:50:06.962+0800 task/task.go:92 response status: 201
  71. 2021-08-11T05:50:06.972+0800 task/task.go:105 [1628632203]new task ID:1200762462637997
  72. 2021-08-11T05:50:06.976+0800 cmd/tasks.go:61 succeeded, task gid: 1200762462637997
  73. 2021-08-11T05:50:06.977+0800 cmd/tasks.go:31 completed ...
  74. 2021-08-11T05:50:33.051+0800 cmd/tasks.go:27 started ...
  75. 2021-08-11T05:50:33.054+0800 story/stories.go:102 request: {"data":{"text":"comment - Wed, 11 Aug 2021 05:50:33 CST","is_pinned":false}}
  76. 2021-08-11T05:50:33.058+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks/1200762462637997/stories
  77. 2021-08-11T05:50:34.905+0800 util/http.go:142 response: {"data":{"gid":"1200762439188269","resource_type":"story","created_at":"2021-08-10T21:50:36.058Z","target":{"gid":"1200762462637997","resource_type":"task","name":"#1628632203-Tue Aug 10 21:50:03 2021-Merchant Profile Updates","resource_subtype":"default_task"},"source":"api","is_pinned":false,"type":"comment","text":"comment - Wed, 11 Aug 2021 05:50:33 CST","is_edited":false,"resource_subtype":"comment_added","num_hearts":0,"num_likes":0,"created_by":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"is_editable":true,"hearted":false,"hearts":[],"previews":[],"liked":false,"likes":[]}}
  78. 2021-08-11T05:50:34.906+0800 story/stories.go:112 response status: 201
  79. 2021-08-11T05:50:34.913+0800 story/stories.go:121 illegal comment result: json: cannot unmarshal bool into Go struct field Response.data.is_pinned of type string
  80. git.drinkme.beer/yinghe/log.Errorf
  81. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  82. asana/module/story.Request.Create
  83. G:/dev/go/git.drinkme.beer/yinghe/asana/module/story/stories.go:121
  84. main.createStory
  85. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:72
  86. main.main
  87. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:29
  88. runtime.main
  89. E:/go/src/runtime/proc.go:204
  90. 2021-08-11T05:50:34.917+0800 cmd/tasks.go:75 failed to create new comment: json: cannot unmarshal bool into Go struct field Response.data.is_pinned of type string
  91. git.drinkme.beer/yinghe/log.Errorf
  92. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  93. main.createStory
  94. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:75
  95. main.main
  96. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:29
  97. runtime.main
  98. E:/go/src/runtime/proc.go:204
  99. 2021-08-11T05:50:34.918+0800 cmd/tasks.go:31 completed ...
  100. 2021-08-11T05:54:16.724+0800 cmd/tasks.go:27 started ...
  101. 2021-08-11T05:54:18.320+0800 attach/attachments.go:68 failed to detect content type: EOF
  102. git.drinkme.beer/yinghe/log.Errorf
  103. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  104. asana/module/attach.Request.Create
  105. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:68
  106. main.uploadAttachment
  107. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  108. main.main
  109. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  110. runtime.main
  111. E:/go/src/runtime/proc.go:204
  112. 2021-08-11T05:54:18.321+0800 cmd/tasks.go:95 failed to upload attachment: EOF
  113. git.drinkme.beer/yinghe/log.Errorf
  114. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  115. main.uploadAttachment
  116. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  117. main.main
  118. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  119. runtime.main
  120. E:/go/src/runtime/proc.go:204
  121. 2021-08-11T05:54:18.331+0800 cmd/tasks.go:31 completed ...
  122. 2021-08-11T06:00:10.100+0800 cmd/tasks.go:27 started ...
  123. 2021-08-11T06:00:13.225+0800 util/http.go:166 unexpected status: 400
  124. git.drinkme.beer/yinghe/log.Errorf
  125. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  126. asana/util.Request
  127. G:/dev/go/git.drinkme.beer/yinghe/asana/util/http.go:166
  128. asana/module/attach.Request.Create
  129. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:103
  130. main.uploadAttachment
  131. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  132. main.main
  133. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  134. runtime.main
  135. E:/go/src/runtime/proc.go:204
  136. 2021-08-11T06:00:13.225+0800 cmd/tasks.go:95 failed to upload attachment: unexpected status
  137. git.drinkme.beer/yinghe/log.Errorf
  138. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  139. main.uploadAttachment
  140. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  141. main.main
  142. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  143. runtime.main
  144. E:/go/src/runtime/proc.go:204
  145. 2021-08-11T06:00:13.230+0800 cmd/tasks.go:31 completed ...
  146. 2021-08-11T06:01:45.465+0800 cmd/tasks.go:27 started ...
  147. 2021-08-11T06:01:45.467+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=170f99fe80eb51cc2a28e0dee9833b0287225d0e2817bf0282e1c50c7d6b]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  148. 2021-08-11T06:01:47.139+0800 util/http.go:166 unexpected status: 400
  149. git.drinkme.beer/yinghe/log.Errorf
  150. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  151. asana/util.Request
  152. G:/dev/go/git.drinkme.beer/yinghe/asana/util/http.go:166
  153. asana/module/attach.Request.Create
  154. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:103
  155. main.uploadAttachment
  156. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  157. main.main
  158. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  159. runtime.main
  160. E:/go/src/runtime/proc.go:204
  161. 2021-08-11T06:01:47.141+0800 cmd/tasks.go:95 failed to upload attachment: unexpected status
  162. git.drinkme.beer/yinghe/log.Errorf
  163. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  164. main.uploadAttachment
  165. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  166. main.main
  167. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  168. runtime.main
  169. E:/go/src/runtime/proc.go:204
  170. 2021-08-11T06:01:47.148+0800 cmd/tasks.go:31 completed ...
  171. 2021-08-11T06:31:01.534+0800 cmd/tasks.go:27 started ...
  172. 2021-08-11T06:31:01.535+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=5bada70f791756c1db6957c15f9bc4222177d4d2199aec1d90a3bd328bf7]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  173. 2021-08-11T06:31:03.187+0800 util/http.go:166 unexpected status: 400
  174. git.drinkme.beer/yinghe/log.Errorf
  175. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  176. asana/util.Request
  177. G:/dev/go/git.drinkme.beer/yinghe/asana/util/http.go:166
  178. asana/module/attach.Request.Create
  179. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:108
  180. main.uploadAttachment
  181. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  182. main.main
  183. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  184. runtime.main
  185. E:/go/src/runtime/proc.go:204
  186. 2021-08-11T06:31:03.188+0800 cmd/tasks.go:95 failed to upload attachment: unexpected status
  187. git.drinkme.beer/yinghe/log.Errorf
  188. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  189. main.uploadAttachment
  190. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  191. main.main
  192. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  193. runtime.main
  194. E:/go/src/runtime/proc.go:204
  195. 2021-08-11T06:31:03.193+0800 cmd/tasks.go:31 completed ...
  196. 2021-08-11T06:44:42.230+0800 cmd/tasks.go:27 started ...
  197. 2021-08-11T06:44:42.231+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=b526940b1887f6ff2fcad6220ed7e982e43e00b84aa567433c2bbe9755ef]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  198. 2021-08-11T06:44:43.983+0800 util/http.go:166 unexpected status: 400
  199. git.drinkme.beer/yinghe/log.Errorf
  200. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  201. asana/util.Request
  202. G:/dev/go/git.drinkme.beer/yinghe/asana/util/http.go:166
  203. asana/module/attach.Request.Create
  204. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:109
  205. main.uploadAttachment
  206. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  207. main.main
  208. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  209. runtime.main
  210. E:/go/src/runtime/proc.go:204
  211. 2021-08-11T06:44:43.985+0800 cmd/tasks.go:95 failed to upload attachment: unexpected status
  212. git.drinkme.beer/yinghe/log.Errorf
  213. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  214. main.uploadAttachment
  215. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  216. main.main
  217. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  218. runtime.main
  219. E:/go/src/runtime/proc.go:204
  220. 2021-08-11T06:44:43.989+0800 cmd/tasks.go:31 completed ...
  221. 2021-08-11T06:54:16.012+0800 cmd/tasks.go:27 started ...
  222. 2021-08-11T06:54:16.014+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=45b8a6f7327632c862599ba5e8f05f28a699e1b5c3c1b7c629aaed8da832]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  223. 2021-08-11T06:54:17.104+0800 attach/attachments.go:93 content type: image/jpeg
  224. 2021-08-11T06:54:17.743+0800 util/http.go:169 response: {"errors":[{"message":"Could not interpret Content-Type as an identifier in Content-Type.","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}
  225. 2021-08-11T06:54:17.745+0800 util/http.go:171 unexpected status: 400
  226. git.drinkme.beer/yinghe/log.Errorf
  227. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  228. asana/util.Request
  229. G:/dev/go/git.drinkme.beer/yinghe/asana/util/http.go:171
  230. asana/module/attach.Request.Create
  231. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:109
  232. main.uploadAttachment
  233. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  234. main.main
  235. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  236. runtime.main
  237. E:/go/src/runtime/proc.go:204
  238. 2021-08-11T06:54:17.754+0800 cmd/tasks.go:95 failed to upload attachment: unexpected status
  239. git.drinkme.beer/yinghe/log.Errorf
  240. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  241. main.uploadAttachment
  242. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  243. main.main
  244. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  245. runtime.main
  246. E:/go/src/runtime/proc.go:204
  247. 2021-08-11T06:54:17.754+0800 cmd/tasks.go:31 completed ...
  248. 2021-08-11T06:55:52.546+0800 cmd/tasks.go:27 started ...
  249. 2021-08-11T06:55:52.548+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=2d2cb063e3eb9a1117ff82cf148333ba2da5f2a101b36fd9c9c51d483259]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  250. 2021-08-11T06:55:53.694+0800 attach/attachments.go:93 content type: image/jpeg
  251. 2021-08-11T06:55:55.563+0800 util/http.go:181 response: {"data":{"gid":"1200762676545607","resource_type":"attachment","name":"WechatIMG8.jpeg","resource_subtype":"asana"}}
  252. 2021-08-11T06:55:55.564+0800 cmd/tasks.go:97 attachment id: 1200762676545607
  253. 2021-08-11T06:55:55.570+0800 cmd/tasks.go:31 completed ...
  254. 2021-08-11T07:00:46.448+0800 cmd/tasks.go:27 started ...
  255. 2021-08-11T07:00:46.451+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=27567d33c5b4e1614a4dc5c6305df405b27ba4e8642639f4d19fb1c3bd1a]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  256. 2021-08-11T07:00:49.749+0800 util/http.go:181 response: {"data":{"gid":"1200762737643119","resource_type":"attachment","name":"WechatIMG8.jpeg","resource_subtype":"asana"}}
  257. 2021-08-11T07:00:49.750+0800 cmd/tasks.go:97 attachment id: 1200762737643119
  258. 2021-08-11T07:00:49.757+0800 cmd/tasks.go:31 completed ...
  259. 2021-08-11T07:08:05.457+0800 cmd/tasks.go:27 started ...
  260. 2021-08-11T07:08:05.460+0800 attach/attachments.go:70 failed to detect content type: invalid argument
  261. git.drinkme.beer/yinghe/log.Errorf
  262. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  263. asana/module/attach.Request.Create
  264. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:70
  265. main.uploadAttachment
  266. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  267. main.main
  268. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  269. runtime.main
  270. E:/go/src/runtime/proc.go:204
  271. 2021-08-11T07:08:05.464+0800 cmd/tasks.go:95 failed to upload attachment: invalid argument
  272. git.drinkme.beer/yinghe/log.Errorf
  273. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  274. main.uploadAttachment
  275. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  276. main.main
  277. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  278. runtime.main
  279. E:/go/src/runtime/proc.go:204
  280. 2021-08-11T07:08:05.465+0800 cmd/tasks.go:31 completed ...
  281. 2021-08-11T07:09:34.589+0800 cmd/tasks.go:27 started ...
  282. 2021-08-11T07:09:35.674+0800 attach/attachments.go:70 failed to detect content type: EOF
  283. git.drinkme.beer/yinghe/log.Errorf
  284. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  285. asana/module/attach.Request.Create
  286. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:70
  287. main.uploadAttachment
  288. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  289. main.main
  290. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  291. runtime.main
  292. E:/go/src/runtime/proc.go:204
  293. 2021-08-11T07:09:35.676+0800 cmd/tasks.go:95 failed to upload attachment: EOF
  294. git.drinkme.beer/yinghe/log.Errorf
  295. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  296. main.uploadAttachment
  297. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  298. main.main
  299. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  300. runtime.main
  301. E:/go/src/runtime/proc.go:204
  302. 2021-08-11T07:09:35.688+0800 cmd/tasks.go:31 completed ...
  303. 2021-08-11T07:10:03.056+0800 cmd/tasks.go:27 started ...
  304. 2021-08-11T07:10:03.058+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=92993be3bf147bf6749d9c50cddfec28bc9f5e54cf1bdb98eb6fdc8cd60d]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  305. 2021-08-11T07:10:05.261+0800 util/http.go:181 response: {"data":{"gid":"1200762804306062","resource_type":"attachment","name":"beer","resource_subtype":"asana"}}
  306. 2021-08-11T07:10:05.261+0800 cmd/tasks.go:97 attachment id: 1200762804306062
  307. 2021-08-11T07:10:05.265+0800 cmd/tasks.go:31 completed ...
  308. 2021-08-11T07:13:17.583+0800 cmd/tasks.go:27 started ...
  309. 2021-08-11T07:13:17.584+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=8ca35bf11205c05ab86a9707672c5cdee67c90f425a55243371dcfbb7c02]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  310. 2021-08-11T07:13:20.638+0800 util/http.go:181 response: {"data":{"gid":"1200762709092387","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  311. 2021-08-11T07:13:20.640+0800 cmd/tasks.go:97 attachment id: 1200762709092387
  312. 2021-08-11T07:13:20.645+0800 cmd/tasks.go:31 completed ...
  313. 2021-08-11T07:15:27.754+0800 cmd/tasks.go:27 started ...
  314. 2021-08-11T07:15:27.757+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762462637997/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=a9bd48158af0807d4720841e28ed0764f35ef47d1e21ccf1557ebd638102]] 0xc000148080 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc000110180}
  315. 2021-08-11T07:15:30.979+0800 util/http.go:181 response: {"data":{"gid":"1200762756654257","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  316. 2021-08-11T07:15:30.980+0800 cmd/tasks.go:97 attachment id: 1200762756654257
  317. 2021-08-11T07:15:30.985+0800 cmd/tasks.go:31 completed ...
  318. 2021-08-11T07:16:01.885+0800 cmd/tasks.go:27 started ...
  319. 2021-08-11T07:16:01.887+0800 cmd/tasks.go:38 ticket No.: 1628637361
  320. 2021-08-11T07:16:01.887+0800 task/task.go:82 request: {"data":{"resource_subtype":"default_task","assignee":"1199521781039350","name":"#1628637361-Merchant Profile Updates-Tue Aug 10 23:16:01 2021","completed":false,"due_on":"2021-08-18","linked":false,"notes":"Testing - Tue, 10 Aug 2021 23:16:01 UTC","start_on":"2021-08-11","custom_fields":{"1199521775380609":"1199521775380611","1200366443430274":"1200366443431311","1200750482997339":"1628637361","1200753569394602":"1200753569396679"},"projects":["1200750482997336"],"workspace":"916657163525497"}}
  321. 2021-08-11T07:16:01.888+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  322. 2021-08-11T07:16:05.676+0800 util/http.go:142 response: {"data":{"gid":"1200762811929407","projects":[{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"}],"resource_type":"task","created_at":"2021-08-10T23:16:04.993Z","modified_at":"2021-08-10T23:16:04.993Z","name":"#1628637361-Merchant Profile Updates-Tue Aug 10 23:16:01 2021","notes":"Testing - Tue, 10 Aug 2021 23:16:01 UTC","assignee":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"completed":false,"assignee_status":"inbox","completed_at":null,"due_on":"2021-08-18","due_at":null,"resource_subtype":"default_task","start_on":"2021-08-11","start_at":null,"tags":[],"workspace":{"gid":"916657163525497","resource_type":"workspace","name":"yuansfer.com"},"num_hearts":0,"num_likes":0,"permalink_url":"https://app.asana.com/0/1200750482997336/1200762811929407","followers":[{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"}],"parent":null,"hearted":false,"hearts":[],"assignee_section":{"gid":"1200524821166545","resource_type":"section","name":"Recently assigned"},"liked":false,"likes":[],"memberships":[{"project":{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"},"section":{"gid":"1200753569417613","resource_type":"section","name":"Backlog"}}],"custom_fields":[{"gid":"1200366443430274","resource_type":"custom_field","resource_subtype":"enum","type":"enum","name":"Ticket Type","enabled":true,"enum_value":{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},"display_value":"Merchant Profile Updates","created_by":{"gid":"1200057682745929","resource_type":"user","name":"Jeremy Jones"},"enum_options":[{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},{"gid":"1200366443431316","resource_type":"enum_option","enabled":true,"name":"Transaction Errors","color":"red"},{"gid":"1200366443431388","resource_type":"enum_option","enabled":true,"name":"Product Requests","color":"orange"},{"gid":"1200366443431401","resource_type":"enum_option","enabled":true,"name":"Declined Merchant/Disabled Account","color":"yellow-orange"},{"gid":"1200366443432434","resource_type":"enum_option","enabled":true,"name":"Bug Fixes","color":"yellow"},{"gid":"1200366464813839","resource_type":"enum_option","enabled":true,"name":"Internal Development Project","color":"yellow-green"},{"gid":"1200680513739265","resource_type":"enum_option","enabled":true,"name":"Feedback","color":"blue-green"},{"gid":"1200760425076272","resource_type":"enum_option","enabled":true,"name":"Others","color":"cool-gray"}]},{"gid":"1199521775380609","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Priority","enabled":true,"enum_value":{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},"display_value":"Medium","enum_options":[{"gid":"1199521775380610","resource_type":"enum_option","enabled":true,"name":"High","color":"red"},{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},{"gid":"1199521775380612","resource_type":"enum_option","enabled":true,"name":"Low","color":"green"}]},{"gid":"1200107390884071","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Product stage","enabled":true,"enum_value":null,"display_value":null,"enum_options":[{"gid":"1200107390884072","resource_type":"enum_option","enabled":true,"name":"Spec needed","color":"none"},{"gid":"1200107390884073","resource_type":"enum_option","enabled":true,"name":"Design ready","color":"none"},{"gid":"1200107390884074","resource_type":"enum_option","enabled":true,"name":"Eng ready","color":"none"},{"gid":"1200107390884075","resource_type":"enum_option","enabled":true,"name":"QA ready","color":"none"},{"gid":"1200107390884076","resource_type":"enum_option","enabled":true,"name":"Marketing ready","color":"none"}]},{"gid":"1200128693
  323. 2021-08-11T07:16:05.678+0800 task/task.go:92 response status: 201
  324. 2021-08-11T07:16:05.689+0800 task/task.go:105 [1628637361]new task ID:1200762811929407
  325. 2021-08-11T07:16:05.696+0800 cmd/tasks.go:61 succeeded, task gid: 1200762811929407
  326. 2021-08-11T07:16:05.696+0800 cmd/tasks.go:31 completed ...
  327. 2021-08-11T07:16:28.366+0800 cmd/tasks.go:27 started ...
  328. 2021-08-11T07:16:28.368+0800 story/stories.go:102 request: {"data":{"text":"comment - Wed, 11 Aug 2021 07:16:28 CST","is_pinned":false}}
  329. 2021-08-11T07:16:28.372+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks/1200762811929407/stories
  330. 2021-08-11T07:16:30.340+0800 util/http.go:142 response: {"data":{"gid":"1200762758090758","resource_type":"story","created_at":"2021-08-10T23:16:31.587Z","target":{"gid":"1200762811929407","resource_type":"task","name":"#1628637361-Merchant Profile Updates-Tue Aug 10 23:16:01 2021","resource_subtype":"default_task"},"source":"api","is_pinned":false,"type":"comment","text":"comment - Wed, 11 Aug 2021 07:16:28 CST","is_edited":false,"resource_subtype":"comment_added","num_hearts":0,"num_likes":0,"created_by":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"is_editable":true,"hearted":false,"hearts":[],"previews":[],"liked":false,"likes":[]}}
  331. 2021-08-11T07:16:30.340+0800 story/stories.go:112 response status: 201
  332. 2021-08-11T07:16:30.347+0800 story/stories.go:125 [1200762811929407]new comment ID:1200762758090758
  333. 2021-08-11T07:16:30.349+0800 cmd/tasks.go:77 succeeded, comment gid: 1200762758090758
  334. 2021-08-11T07:16:30.350+0800 cmd/tasks.go:31 completed ...
  335. 2021-08-11T07:16:49.987+0800 cmd/tasks.go:27 started ...
  336. 2021-08-11T07:16:49.989+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762811929407/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=62e8543c9c05d612597b9aca0a65c03876a7c2d0a50d5528a06f75eeae11]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  337. 2021-08-11T07:16:52.222+0800 util/http.go:181 response: {"data":{"gid":"1200762809106604","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  338. 2021-08-11T07:16:52.223+0800 cmd/tasks.go:97 attachment id: 1200762809106604
  339. 2021-08-11T07:16:52.226+0800 cmd/tasks.go:31 completed ...
  340. 2021-08-11T07:40:17.804+0800 cmd/tasks.go:27 started ...
  341. 2021-08-11T07:40:17.805+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200762811929407/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=f20c43a7863784b1a8c2a1c582b664a229c2a0314afe2dcd15ea248fee01]] 0xc000006090 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  342. 2021-08-11T07:40:17.805+0800 attach/attachments.go:103 Content-Type: image/jpeg
  343. 2021-08-11T07:40:21.281+0800 util/http.go:181 response: {"data":{"gid":"1200762840050800","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  344. 2021-08-11T07:40:21.282+0800 cmd/tasks.go:97 attachment id: 1200762840050800
  345. 2021-08-11T07:40:21.292+0800 cmd/tasks.go:31 completed ...
  346. 2021-08-11T09:11:00.821+0800 cmd/tasks.go:27 started ...
  347. 2021-08-11T09:11:00.823+0800 cmd/tasks.go:38 ticket No.: 1628644260
  348. 2021-08-11T09:11:00.824+0800 task/task.go:82 request: {"data":{"resource_subtype":"default_task","assignee":"1199521781039350","name":"#1628644260-Merchant Profile Updates-Wed Aug 11 01:11:00 2021","completed":false,"due_on":"2021-08-18","linked":false,"notes":"Testing - Wed, 11 Aug 2021 01:11:00 UTC","start_on":"2021-08-11","custom_fields":{"1199521775380609":"1199521775380611","1200366443430274":"1200366443431311","1200750482997339":"1628644260","1200753569394602":"1200753569396679"},"projects":["1200750482997336"],"workspace":"916657163525497"}}
  349. 2021-08-11T09:11:00.825+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks
  350. 2021-08-11T09:11:04.875+0800 util/http.go:142 response: {"data":{"gid":"1200763212554435","projects":[{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"}],"resource_type":"task","created_at":"2021-08-11T01:11:04.538Z","modified_at":"2021-08-11T01:11:04.538Z","name":"#1628644260-Merchant Profile Updates-Wed Aug 11 01:11:00 2021","notes":"Testing - Wed, 11 Aug 2021 01:11:00 UTC","assignee":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"completed":false,"assignee_status":"inbox","completed_at":null,"due_on":"2021-08-18","due_at":null,"resource_subtype":"default_task","start_on":"2021-08-11","start_at":null,"tags":[],"workspace":{"gid":"916657163525497","resource_type":"workspace","name":"yuansfer.com"},"num_hearts":0,"num_likes":0,"permalink_url":"https://app.asana.com/0/1200750482997336/1200763212554435","followers":[{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"}],"parent":null,"hearted":false,"hearts":[],"assignee_section":{"gid":"1200524821166545","resource_type":"section","name":"Recently assigned"},"liked":false,"likes":[],"memberships":[{"project":{"gid":"1200750482997336","resource_type":"project","name":"Development Project for Tickets"},"section":{"gid":"1200753569417613","resource_type":"section","name":"Backlog"}}],"custom_fields":[{"gid":"1200366443430274","resource_type":"custom_field","resource_subtype":"enum","type":"enum","name":"Ticket Type","enabled":true,"enum_value":{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},"display_value":"Merchant Profile Updates","created_by":{"gid":"1200057682745929","resource_type":"user","name":"Jeremy Jones"},"enum_options":[{"gid":"1200366443431311","resource_type":"enum_option","enabled":true,"name":"Merchant Profile Updates","color":"green"},{"gid":"1200366443431316","resource_type":"enum_option","enabled":true,"name":"Transaction Errors","color":"red"},{"gid":"1200366443431388","resource_type":"enum_option","enabled":true,"name":"Product Requests","color":"orange"},{"gid":"1200366443431401","resource_type":"enum_option","enabled":true,"name":"Declined Merchant/Disabled Account","color":"yellow-orange"},{"gid":"1200366443432434","resource_type":"enum_option","enabled":true,"name":"Bug Fixes","color":"yellow"},{"gid":"1200366464813839","resource_type":"enum_option","enabled":true,"name":"Internal Development Project","color":"yellow-green"},{"gid":"1200680513739265","resource_type":"enum_option","enabled":true,"name":"Feedback","color":"blue-green"},{"gid":"1200760425076272","resource_type":"enum_option","enabled":true,"name":"Others","color":"cool-gray"}]},{"gid":"1199521775380609","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Priority","enabled":true,"enum_value":{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},"display_value":"Medium","enum_options":[{"gid":"1199521775380610","resource_type":"enum_option","enabled":true,"name":"High","color":"red"},{"gid":"1199521775380611","resource_type":"enum_option","enabled":true,"name":"Medium","color":"orange"},{"gid":"1199521775380612","resource_type":"enum_option","enabled":true,"name":"Low","color":"green"}]},{"gid":"1200107390884071","resource_type":"custom_field","created_by":null,"resource_subtype":"enum","type":"enum","name":"Product stage","enabled":true,"enum_value":null,"display_value":null,"enum_options":[{"gid":"1200107390884072","resource_type":"enum_option","enabled":true,"name":"Spec needed","color":"none"},{"gid":"1200107390884073","resource_type":"enum_option","enabled":true,"name":"Design ready","color":"none"},{"gid":"1200107390884074","resource_type":"enum_option","enabled":true,"name":"Eng ready","color":"none"},{"gid":"1200107390884075","resource_type":"enum_option","enabled":true,"name":"QA ready","color":"none"},{"gid":"1200107390884076","resource_type":"enum_option","enabled":true,"name":"Marketing ready","color":"none"}]},{"gid":"1200128693
  351. 2021-08-11T09:11:04.880+0800 task/task.go:92 response status: 201
  352. 2021-08-11T09:11:04.893+0800 task/task.go:105 [1628644260]new task ID:1200763212554435
  353. 2021-08-11T09:11:04.899+0800 cmd/tasks.go:61 succeeded, task gid: 1200763212554435
  354. 2021-08-11T09:11:04.899+0800 cmd/tasks.go:31 completed ...
  355. 2021-08-11T09:11:27.885+0800 cmd/tasks.go:27 started ...
  356. 2021-08-11T09:11:27.887+0800 story/stories.go:102 request: {"data":{"text":"comment - Wed, 11 Aug 2021 09:11:27 CST","is_pinned":false}}
  357. 2021-08-11T09:11:27.887+0800 util/http.go:117 request url: https://app.asana.com/api/1.0/tasks/1200763212554435/stories
  358. 2021-08-11T09:11:30.277+0800 util/http.go:142 response: {"data":{"gid":"1200763160493094","resource_type":"story","created_at":"2021-08-11T01:11:31.591Z","target":{"gid":"1200763212554435","resource_type":"task","name":"#1628644260-Merchant Profile Updates-Wed Aug 11 01:11:00 2021","resource_subtype":"default_task"},"source":"api","is_pinned":false,"type":"comment","text":"comment - Wed, 11 Aug 2021 09:11:27 CST","is_edited":false,"resource_subtype":"comment_added","num_hearts":0,"num_likes":0,"created_by":{"gid":"1199521781039350","resource_type":"user","name":"Frank Liu"},"is_editable":true,"hearted":false,"hearts":[],"previews":[],"liked":false,"likes":[]}}
  359. 2021-08-11T09:11:30.277+0800 story/stories.go:112 response status: 201
  360. 2021-08-11T09:11:30.280+0800 story/stories.go:125 [1200763212554435]new comment ID:1200763160493094
  361. 2021-08-11T09:11:30.285+0800 cmd/tasks.go:77 succeeded, comment gid: 1200763160493094
  362. 2021-08-11T09:11:30.287+0800 cmd/tasks.go:31 completed ...
  363. 2021-08-11T09:11:46.516+0800 cmd/tasks.go:27 started ...
  364. 2021-08-11T09:11:47.464+0800 attach/attachments.go:81 failed to detect content type: EOF
  365. git.drinkme.beer/yinghe/log.Errorf
  366. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  367. asana/module/attach.Request.Create
  368. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:81
  369. main.uploadAttachment
  370. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  371. main.main
  372. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  373. runtime.main
  374. E:/go/src/runtime/proc.go:204
  375. 2021-08-11T09:11:47.466+0800 cmd/tasks.go:95 failed to upload attachment: EOF
  376. git.drinkme.beer/yinghe/log.Errorf
  377. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  378. main.uploadAttachment
  379. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  380. main.main
  381. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  382. runtime.main
  383. E:/go/src/runtime/proc.go:204
  384. 2021-08-11T09:11:47.471+0800 cmd/tasks.go:31 completed ...
  385. 2021-08-11T09:15:36.254+0800 cmd/tasks.go:27 started ...
  386. 2021-08-11T09:15:36.466+0800 attach/attachments.go:81 failed to detect content type: EOF
  387. git.drinkme.beer/yinghe/log.Errorf
  388. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  389. asana/module/attach.Request.Create
  390. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:81
  391. main.uploadAttachment
  392. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  393. main.main
  394. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  395. runtime.main
  396. E:/go/src/runtime/proc.go:204
  397. 2021-08-11T09:15:36.468+0800 cmd/tasks.go:95 failed to upload attachment: EOF
  398. git.drinkme.beer/yinghe/log.Errorf
  399. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  400. main.uploadAttachment
  401. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  402. main.main
  403. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  404. runtime.main
  405. E:/go/src/runtime/proc.go:204
  406. 2021-08-11T09:15:36.483+0800 cmd/tasks.go:31 completed ...
  407. 2021-08-11T09:33:05.245+0800 cmd/tasks.go:27 started ...
  408. 2021-08-11T09:33:05.448+0800 attach/attachments.go:148 EOF
  409. git.drinkme.beer/yinghe/log.Errorf
  410. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  411. asana/module/attach.fDetectContentType
  412. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:148
  413. asana/module/attach.Request.Create
  414. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:78
  415. main.uploadAttachment
  416. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  417. main.main
  418. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  419. runtime.main
  420. E:/go/src/runtime/proc.go:204
  421. 2021-08-11T09:33:05.449+0800 attach/attachments.go:81 failed to detect content type: EOF
  422. git.drinkme.beer/yinghe/log.Errorf
  423. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  424. asana/module/attach.Request.Create
  425. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:81
  426. main.uploadAttachment
  427. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  428. main.main
  429. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  430. runtime.main
  431. E:/go/src/runtime/proc.go:204
  432. 2021-08-11T09:33:05.469+0800 cmd/tasks.go:95 failed to upload attachment: EOF
  433. git.drinkme.beer/yinghe/log.Errorf
  434. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  435. main.uploadAttachment
  436. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:95
  437. main.main
  438. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  439. runtime.main
  440. E:/go/src/runtime/proc.go:204
  441. 2021-08-11T09:33:05.476+0800 cmd/tasks.go:31 completed ...
  442. 2021-08-11T09:39:55.802+0800 cmd/tasks.go:27 started ...
  443. 2021-08-11T09:39:55.995+0800 attach/attachments.go:103 Content-Type: image/jpeg
  444. 2021-08-11T09:39:55.995+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200763212554435/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=142ea28323748ac414bed095d6d6e396e50366eae5b7c5d9c3a1f4f80273]] 0xc0001fc008 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  445. 2021-08-11T09:39:58.696+0800 util/http.go:181 response: {"data":{"gid":"1200763283314288","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  446. 2021-08-11T09:39:58.697+0800 cmd/tasks.go:97 attachment id: 1200763283314288
  447. 2021-08-11T09:39:58.702+0800 cmd/tasks.go:31 completed ...
  448. 2021-08-11T09:43:43.690+0800 cmd/tasks.go:27 started ...
  449. 2021-08-11T09:43:43.882+0800 attach/attachments.go:103 Content-Type: image/jpeg
  450. 2021-08-11T09:43:43.882+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200763212554435/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=692c5a003cde1aa48c6f8e592f98bd76420442218dd6cdf9ef47488c8809]] 0xc000188048 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  451. 2021-08-11T09:43:46.111+0800 util/http.go:181 response: {"data":{"gid":"1200763287249606","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  452. 2021-08-11T09:43:46.111+0800 cmd/tasks.go:97 attachment id: 1200763287249606
  453. 2021-08-11T09:43:46.113+0800 cmd/tasks.go:31 completed ...
  454. 2021-08-11T09:45:14.948+0800 cmd/tasks.go:27 started ...
  455. 2021-08-11T09:45:15.141+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200763212554435/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=68c6c5664497c22e88e1d969404f63b2301cd6eef98430caa149963b8eef]] 0xc0000060c0 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  456. 2021-08-11T09:45:15.141+0800 attach/attachments.go:104 Content-Type: image/jpeg
  457. 2021-08-11T09:45:17.172+0800 util/http.go:181 response: {"data":{"gid":"1200763403488204","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  458. 2021-08-11T09:45:17.175+0800 attach/attachments.go:70 failed to remove temporary file: remove ./static/abeer.jpg: The process cannot access the file because it is being used by another process.
  459. git.drinkme.beer/yinghe/log.Errorf
  460. E:/liuda/go/pkg/mod/git.drinkme.beer/yinghe/[email protected]/logging.go:22
  461. asana/module/attach.Request.Create.func1
  462. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:70
  463. asana/module/attach.Request.Create
  464. G:/dev/go/git.drinkme.beer/yinghe/asana/module/attach/attachments.go:136
  465. main.uploadAttachment
  466. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:93
  467. main.main
  468. G:/dev/go/git.drinkme.beer/yinghe/asana/cmd/tasks.go:30
  469. runtime.main
  470. E:/go/src/runtime/proc.go:204
  471. 2021-08-11T09:45:17.180+0800 cmd/tasks.go:97 attachment id: 1200763403488204
  472. 2021-08-11T09:45:17.181+0800 cmd/tasks.go:31 completed ...
  473. 2021-08-11T09:50:09.559+0800 cmd/tasks.go:27 started ...
  474. 2021-08-11T09:50:09.758+0800 attach/attachments.go:109 Content-Type: image/jpeg
  475. 2021-08-11T09:50:09.758+0800 util/http.go:156 &{POST https://app.asana.com/api/1.0/tasks/1200763212554435/attachments HTTP/1.1 1 1 map[Authorization:[Bearer 1/1199521781039350:1fc8fb9e093189ab00284f6f21e56431] Content-Type:[multipart/form-data; boundary=aa836485ac9ac8f90ebdce027598e26b893b62f258fa9d5ffdd168c0caa7]] 0xc000096008 <nil> 0 [] false app.asana.com map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00000a0c8}
  476. 2021-08-11T09:50:12.199+0800 util/http.go:181 response: {"data":{"gid":"1200763409179552","resource_type":"attachment","name":"abeer.jpg","resource_subtype":"asana"}}
  477. 2021-08-11T09:50:12.200+0800 attach/attachments.go:73 exiting temporary file succeeded!
  478. 2021-08-11T09:50:12.208+0800 attach/attachments.go:79 removing temporary file succeeded!
  479. 2021-08-11T09:50:12.209+0800 cmd/tasks.go:97 attachment id: 1200763409179552
  480. 2021-08-11T09:50:12.210+0800 cmd/tasks.go:31 completed ...