Error creating issue

Issue #304 open
Stefan Schneider created an issue

Jira and Bitbucket (Official)

Issue Type: <b>Bug</b>

Important hints: data was not an array.
I have no idea what is meant with 'data'

Extension version: 2.2.0
VS Code version: Code - Insiders 1.41.0-insider (bef029a9d21904c0085c4e8ef1335d9c33a28fa4, 2019-12-09T15:40:24.842Z)
OS version: Darwin x64 17.7.0

<details>
<summary>System Info</summary>

Item Value
CPUs Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)
GPU Status 2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off<br>surface_control: disabled_off<br>surface_synchronization: enabled_on<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off<br>webgl: enabled<br>webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.09GB free)
Process Argv -psn_0_28765037
Screen Reader no
VM 0%

</details>

<!-- generated by issue reporter -->

Comments (8)

  1. Gregory Star Account Deactivated

    Hi Stefan,

    It would help to get some error logging for your particular issue. Can you go to your VS Code settings and check the box that says Atlascode: Enable Curl Logging? Additionally, set Atlascode: Output Level to debug. Once that’s done, you should see Atlascode in the dropdown of your VS Code’s Output box. Selecting that should output more specific information about any curl commands made by our program.

    Once you’ve done that, try to reproduce the issue and paste the console output here.

    Thanks!

  2. Stefan Schneider reporter

    [2019-12-13 08:10:16:345] ----------------------------------------------------------------------
    [2019-12-13 08:10:16:345] curl -X POST -H "Content-Type:application/json" -H "X-Atlassian-Token:no-check" -H "x-atlassian-force-account-id:true" -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik16bERNemsxTVRoRlFVRTJRa0ZGT0VGRk9URkJOREJDTVRRek5EZzJSRVpD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hk3mz7jqTw4Vf0ELAe397s5aRWycreuq1d-2vpNnlqkWz6Es8h2v7-NT9UID7PMKaygp-yEjVeUAN12qweOHZrgbEvT1Ev9ONY3LavjzQnHaBBXEQtWRPk60dM3O2qPy0SmBWCkrRuC_uheW_zROdUO-QHtuaJOEuMMhJMPhg" --data '{"fields":{"components":[{"id":"14646","name":"Foxx Oxid","self":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/rest/api/2/component/14646"}],"customfield_11700":true,"description":"Description test hellow owrld\n\n_~Created from~_ [_~Atlassian for VS Code~_|https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode]","issuetype":{"description":"A user story. Created by JIRA Software - do not edit or delete.","epic":false,"iconUrl":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/secure/viewavatar?size=medium&avatarId=12915&avatarType=issuetype","id":"7","name":"Story","self":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/rest/api/2/issuetype/7","subtask":false},"project":{"avatarUrls":{"16x16":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/secure/projectavatar?size=xsmall&s=xsmall&pid=13000&avatarId=22911","24x24":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/secure/projectavatar?size=small&s=small&pid=13000&avatarId=22911","32x32":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/secure/projectavatar?size=medium&s=medium&pid=13000&avatarId=22911","48x48":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/secure/projectavatar?pid=13000&avatarId=22911"},"id":"13000","isPrivate":false,"key":"FE","name":"Frontend","projectTypeKey":"software","self":"https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/rest/api/2/project/13000","simplified":false,"style":"classic"},"summary":"Test plugin test"}}' "https://api.atlassian.com/ex/jira/cc257288-d215-4a02-a27c-5ef40c7e9a42/rest/api/2/issue"
    [2019-12-13 08:10:16:345] ----------------------------------------------------------------------
    [2019-12-13 08:10:16:677]  Error: error creating comment: Error: Request failed with status code 400
    

  3. Chris Curnow

    I came across the same issue just now.

    Here is the output:

    (It won’t let me paste as code presumably because the following line is too long. I’ll paste this line then separately the lines after it.

    curl -X POST -H "Content-Type:application/json" -H "X-Atlassian-Token:no-check" -H "x-atlassian-force-account-id:true" -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik16bERNemsxTVRoRlFVRTJRa0ZGT0VGRk9URkJOREJDTVRRek5EZzJSRVpDT1VKRFJrVXdNZyJ9.eyJodHRwczovL2F0bGFzc2lhbi5jb20vb2F1dGhDbGllbnRJZCI6ImJKQ2hWZ0JRZDBhTlVQdUZaOFl6WUJWWnozWDRRVGUyIiwiaHR0cHM6Ly9hdGxhc3NpYW4uY29tL2VtYWlsRG9tYWluIjoiNGNhc3QuY29tLmF1IiwiaHR0cHM6Ly9hdGxhc3NpYW4uY29tL3N5c3RlbUFjY291bnRJZCI6IjViZmVkNDUwZDk0OTllMWE4ZmJjYjkzNiIsImh0dHBzOi8vYXRsYXNzaWFuLmNvbS9zeXN0ZW1BY2NvdW50RW1haWxEb21haW4iOiJjb25uZWN0LmF0bGFzc2lhbi5jb20iLCJodHRwczovL2F0bGFzc2lhbi5jb20vdmVyaWZpZWQiOnRydWUsImh0dHBzOi8vYXRsYXNzaWFuLmNvbS9maXJzdFBhcnR5IjpmYWxzZSwiaXNzIjoiaHR0cHM6Ly9hdGxhc3NpYW4tYWNjb3VudC1wcm9kLnB1czIuYXV0aDAuY29tLyIsInN1YiI6ImF1dGgwfDU1NzA1ODplODU1YWNkZS02NzI2LTRkYjctYjc3MC02ZDFhMzQwZmFkN2YiLCJhdWQiOiJhcGkuYXRsYXNzaWFuLmNvbSIsImlhdCI6MTU3OTA4NjY1NiwiZXhwIjoxNTc5MDkwMjU2LCJhenAiOiJiSkNoVmdCUWQwYU5VUHVGWjhZellCVlp6M1g0UVRlMiIsInNjb3BlIjoibWFuYWdlOmppcmEtcHJvamVjdCB3cml0ZTpqaXJhLXdvcmsgcmVhZDpqaXJhLXdvcmsgcmVhZDpqaXJhLXVzZXIgb2ZmbGluZV9hY2Nlc3MifQ.UGnDu-1vDKwIZx7JYmcrRpbevH5texp82Xax_vxG5A9L5Ydc2zP3xgqA0asurTvLDkKzg-s5k_fMNrB7bJrLFvc2gyqO19_KJ4dv2nt9xwRBfz7AP-hqjG1zBONL3Rxj1ZpWFj7krdvVGpw_wnzyhFgzlF-Z2Gf6_P-DKXrRnPPwlKW1TzbLLzAPnDJ4Q8VHg6AfiqM3GjHw1qaAXxVhTtbxSRbXDAB1GUxK99WSPv6WUlgf0A-qDLWrJoFuZ2UUBZnZs-yyE1TVhVYTwDIuVfhTX-rQ3UNA5V_dD0kunJ8TQBEv2jwSjLZsCRtqP9R_bO1_lbEL9MGKfW83lG2rGA" --data '{"fields":{"customfield_10000":true,"description":"https://bitbucket.org/4cast/4castlean/src/master/src/app/project/costing/reallocation/reallocation.service.ts#lines-25\n{code} // TODO:{code}\n\nWe deleted the UUID module but this component relies on it. We have to fix this because it will make the component break.\n\n_~Created from~_ [_~Atlassian for VS Code~_|https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode]","issuetype":{"description":"A small, distinct piece of work.","epic":false,"iconUrl":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/secure/viewavatar?size=medium&avatarId=10318&avatarType=issuetype","id":"10209","name":"Task","self":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/rest/api/2/issuetype/10209","subtask":false},"project":{"avatarUrls":{"16x16":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/secure/projectavatar?size=xsmall&s=xsmall&avatarId=10703","24x24":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/secure/projectavatar?size=small&s=small&avatarId=10703","32x32":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/secure/projectavatar?size=medium&s=medium&avatarId=10703","48x48":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/secure/projectavatar?avatarId=10703"},"id":"10903","isPrivate":false,"key":"FCNG","name":"4cast ng","projectTypeKey":"software","self":"https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/rest/api/2/project/10903","simplified":true,"style":"next-gen"},"summary":"Fix UUID in reallocation service"}}' "https://api.atlassian.com/ex/jira/f1c4d566-65b5-4e6c-a7a8-8b58722f0f66/rest/api/2/issue"

    2020-01-15 11:20:59:773] ----------------------------------------------------------------------
    [2020-01-15 11:21:01:416]  Error: error creating comment: Error: Request failed with status code 400
    [2020-01-15 11:21:45:390] Online check attempting to connect to http://atlassian.com
    [2020-01-15 11:21:45:391] Online check attempting to connect to https://bitbucket.org
    [2020-01-15 11:21:45:783] Online check connected to http://atlassian.com
    [2020-01-15 11:21:46:814] Online check connected to https://bitbucket.org
    [2020-01-15 11:23:44:752] ----------------------------------------------------------------------
    

    I must have tried again because I got a repeat of the above, except the first line had:

    curl -X GET -H "X-Atlassian-Token:no-check" -H "x-atlassian-force-account-id:true" -H "Content-Type:application/json" -H "Authorization:Bearer

    I hope this helps

    I’ll go on with something else at the moment.

  4. Lukas S

    I am currently having the same issue (jira custom server). I can login/edit/start work but I can’t create new tickets. It looks like VS code keeps spamming requests

    [2021-11-10 10:35:53:977] ----------------------------------------------------------------------
    [2021-11-10 10:35:53:977] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/field"
    [2021-11-10 10:35:53:977] ----------------------------------------------------------------------
    [2021-11-10 10:35:54:399] ----------------------------------------------------------------------
    [2021-11-10 10:35:54:399] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/issueLinkType"
    [2021-11-10 10:35:54:399] ----------------------------------------------------------------------
    [2021-11-10 10:35:54:789] ----------------------------------------------------------------------
    [2021-11-10 10:35:54:789] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/issue/createmeta?projectKeys=MYJIRAPROJECT&expand=projects.issuetypes.fields"
    [2021-11-10 10:35:54:789] ----------------------------------------------------------------------
    [2021-11-10 10:35:55:222] Error: error updating issue fields: TypeError: Cannot read property 'selectFieldOptions' of undefined
    [2021-11-10 10:35:55:224] ----------------------------------------------------------------------
    [2021-11-10 10:35:55:224] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/project?orderBy=key"
    [2021-11-10 10:35:55:224] ----------------------------------------------------------------------
    [2021-11-10 10:35:55:679] ----------------------------------------------------------------------
    [2021-11-10 10:35:55:679] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/field"
    [2021-11-10 10:35:55:679] ----------------------------------------------------------------------
    [2021-11-10 10:35:56:096] ----------------------------------------------------------------------
    [2021-11-10 10:35:56:096] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/issueLinkType"
    [2021-11-10 10:35:56:096] ----------------------------------------------------------------------
    [2021-11-10 10:35:56:470] ----------------------------------------------------------------------
    [2021-11-10 10:35:56:470] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Content-Type:application/json" -H "Authorization:Basic bHN6OmxlY2t0bWljaGRvY2hhbWFyc2NoIVNJTV9CXzExODMh" "https://my-jira-server/rest/api/2/issue/createmeta?projectKeys=MYJIRAPROJECT&expand=projects.issuetypes.fields"
    [2021-11-10 10:35:56:470] ----------------------------------------------------------------------
    [2021-11-10 10:35:56:889] Error: error updating issue fields: TypeError: Cannot read property 'selectFieldOptions' of undefined

  5. Log in to comment