Issue with accessing to api with Studio

12 posts, 1 answers
  1. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 24 Nov 2016 Link to this post

    Fiddler easily send requests and recieves answers from my Api but Studio not, request from studion even don't get to api.

    Log says:

    13:23:27.676 [INFO]  [START]   |  Step 'Api' [7KifDHNOAE0ql1ukkpSAWR]

    13:23:27.827 [ERROR] [FAILED]  |  |  'GET http://[ip]:[port]/api/version' [144 ms] [3tDMFpQUKTNpVFeC9JSdUh] 'ЌҐў®§¬®¦­® гбв ­®ўЁвм 100-Continue б Ї®¬®ймо нв®Ј® бў®©бвў .€¬п Ї а ¬Ґва : value'

    13:23:27.831 [ERROR] [FAILED]  |  Step 'Api' [156 ms] [7KifDHNOAE0ql1ukkpSAWR]

    I even tryed to export request from fiddler and import it to studio - it didn't help.
  2. Oleg
    Admin
    Oleg avatar
    37 posts

    Posted 24 Nov 2016 Link to this post

    Hello Vadym,

    Thanks for reaching out. I am afraid though that the information you have provided is not sufficient to determine what exactly happens on your side. Could you please send us a test project where the issue reproduces?

    Regards,
    Oleg
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 24 Nov 2016 Link to this post

    i found reason of tests fails, in headers was block

    Content-Length: 100

    after i removed it - it worked.

    However i i have a problem with displaying ru-ru charset in Console and in "Last Response Data"

  4. Ivaylo
    Admin
    Ivaylo avatar
    760 posts

    Posted 29 Nov 2016 Link to this post

    Hello Vadym,

    I am not able to replicate this behavior with Test Studio for APIs version 2016.3.928 and newer (refer attached screenshot). Let me know which is the version you are using and provide more information. If you provide a test project would be helpful enough.

    Regards,
    Ivaylo
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 30 Nov 2016 in reply to Ivaylo Link to this post

    Ivaylo,i see this:

     

  6. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 30 Nov 2016 Link to this post

    sry for 2 posts, didn't find "edit". Here 2nd example of response
  7. Answer
    John
    Admin
    John avatar
    6 posts

    Posted 02 Dec 2016 Link to this post

    Hi Vadym,

    After carefully inspecting your request I have just found out that you are sending header:

    Accept-Encoding: gzip

    If you remove this header you should be able to see the response content without gzip compression. Please give this a try and let me know if you will need further assistance. Thanks in advance for your cooperation! 

    Regards,
    John
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 02 Dec 2016 in reply to John Link to this post

    Yes, It worked. Thank you. I have next question:

    Can i in some insert Authorisation header in variable? As 'base-url'

    I tried to create auth variable insert into it all authorization header (Basic Vlc3Q6YjBlMGVjN2ZhMGE4OTU3N2M5MzQxYzE2Y2ZmO.....) something like that but Studio do not send varibale value. It send nothing if i insert variable into Authorization header.

  9. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 02 Dec 2016 Link to this post

    Hi Vadym,
    Thank you for writing. I tried reproducing the issue you described but with no success. Have a look at the screenshots below and let me know if I am missing anything.





    I'd be glad to assist you further.

    Regards,
    Kiril Stanoev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  10. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 02 Dec 2016 in reply to Kiril Stanoev Link to this post

    Yes it working as "Test case" variable but don't work as Project variable
  11. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 02 Dec 2016 Link to this post

    Hello Vadym,
    I made the auth-variable a project variable and the test worked as expected. I'm attaching my test project. Have a look at it and let me know if I'm missing anything. The next step is to send us a sample project that reproduces the issue you're describing. 

    Regards,
    Kiril Stanoev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  12. Vadym
    Vadym avatar
    7 posts
    Member since:
    Nov 2016

    Posted 24 Jan Link to this post

    Thank you for your help. I found my error. It's because studio runs tests without saving global variables. After i save them - test uses it correctly.
Back to Top