You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Mike Chan <mi...@rubikloud.com> on 2019/05/02 03:58:33 UTC

API works in browser but not postman / python

Hi all,

I have been trying to touch Zeppelin by API call.

If I type
https://[cluster name]/zeppelin/api/notebook/

it works, without prompting login page and display resulting JSON in web
page

But if I do same query in postman / python, it just won't work

Could not get any response
There was an error connecting to https://[cluster
name]/zeppelin/api/notebook/
<https://xgjtv7-asw-prod-eu-rg-spark-esp.azurehdinsight.net/zeppelin/api/notebook/>
.
Why this might have happened:

   - The server couldn't send a response:
   Ensure that the backend is working properly
   - Self-signed SSL certificates are being blocked:
   Fix this by turning off 'SSL certificate verification' in *Settings >
   General*
   - Proxy configured incorrectly
   Ensure that proxy is configured correctly in *Settings > Proxy*
   - Request timeout:
   Change request timeout in *Settings > General*

I have disabled SSL certification verification accordingly. No proxy
involved in connection.

Also note that in Chrome Developer Tool it shows a request header as
Cookie, will this one critical to request as well? But based on the error I
have I think it's connection layer rather than authentication layer.

Thanks

Unsubscribe

Posted by Juan Nunez <jc...@gmail.com>.
On Wed, May 1, 2019 at 9:03 PM Mike Chan <mi...@rubikloud.com> wrote:

> And when I do it in python
>
> requests.exceptions.ConnectionError: HTTPSConnectionPool(host='
> hn0-nternal.cloudapp.net', port=9995): Max retries exceeded with url:
> /api/login;JSESSIONID=7b6(Caused by
> NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at
> 0x106492cd0>: Failed to establish a new connection: [Errno 8] nodename nor
> servname provided, or not known',))
>
> Mike Chan, Delivery Engineer
> mike.chan@rubikloud.com
> [image: Rubikloud Logo]
>
> Rubikloud Technologies Inc.
>
> Toronto  |  Hong Kong  |  London  |  Dallas
>
> Head Office
>
> 207 Queens Quay West, Suite 801
> Toronto, ON, M5J 1A7
> <https://maps.google.com/?q=207+Queens+Quay+West,+Suite+801,+Toronto,+Ontario+M5J+1A7&entry=gmail&source=g>
>
> www.rubikloud.ai <http://www.rubikloud.ai/?ref=email_signature>
>
> [image: LinkedIn] <http://www.linkedin.com/company/rubikloud-technologies>
>  [image: Twitter] <http://www.twitter.com/rubikloud> [image: Instagram]
> <http://www.instagram.com/rubikloud> [image: Facebook]
> <http://www.facebook.com/rubikloud>
>
> This email contains privileged or confidential information and is intended
> only for the named recipients. If you have received this email in error or
> are not a named recipient, please notify the sender and destroy the email.
> You have the right to opt-out from receiving future communications of this
> type. If you wish to stop receiving emails from Rubikloud please reply
> using the word ‘Unsubscribe’ in the subject line. If you do this, your data
> will be removed from the mailing list but kept on a list of opt-outs to
> ensure you do not receive this type of communications in the future. To
> learn more about our privacy policy, please go to
> rubikloud.ai/privacy-policy.
>
>
> On Thu, May 2, 2019 at 11:58 AM Mike Chan <mi...@rubikloud.com> wrote:
>
>> Hi all,
>>
>> I have been trying to touch Zeppelin by API call.
>>
>> If I type
>> https://[cluster name]/zeppelin/api/notebook/
>>
>> it works, without prompting login page and display resulting JSON in web
>> page
>>
>> But if I do same query in postman / python, it just won't work
>>
>> Could not get any response
>> There was an error connecting to https://[cluster
>> name]/zeppelin/api/notebook/
>> <https://xgjtv7-asw-prod-eu-rg-spark-esp.azurehdinsight.net/zeppelin/api/notebook/>
>> .
>> Why this might have happened:
>>
>>    - The server couldn't send a response:
>>    Ensure that the backend is working properly
>>    - Self-signed SSL certificates are being blocked:
>>    Fix this by turning off 'SSL certificate verification' in *Settings >
>>    General*
>>    - Proxy configured incorrectly
>>    Ensure that proxy is configured correctly in *Settings > Proxy*
>>    - Request timeout:
>>    Change request timeout in *Settings > General*
>>
>> I have disabled SSL certification verification accordingly. No proxy
>> involved in connection.
>>
>> Also note that in Chrome Developer Tool it shows a request header as
>> Cookie, will this one critical to request as well? But based on the error I
>> have I think it's connection layer rather than authentication layer.
>>
>> Thanks
>>
> --
*Carlos Nunez*

*Phone: 818-731-3196*
*Email: jcnunez007@gmail.com <jc...@gmail.com>*

Re: API works in browser but not postman / python

Posted by Mike Chan <mi...@rubikloud.com>.
And when I do it in python

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='
hn0-nternal.cloudapp.net', port=9995): Max retries exceeded with url:
/api/login;JSESSIONID=7b6(Caused by
NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at
0x106492cd0>: Failed to establish a new connection: [Errno 8] nodename nor
servname provided, or not known',))

Mike Chan, Delivery Engineer
mike.chan@rubikloud.com
[image: Rubikloud Logo]

Rubikloud Technologies Inc.

Toronto  |  Hong Kong  |  London  |  Dallas

Head Office

207 Queens Quay West, Suite 801
Toronto, ON, M5J 1A7
<https://maps.google.com/?q=207+Queens+Quay+West,+Suite+801,+Toronto,+Ontario+M5J+1A7&entry=gmail&source=g>

www.rubikloud.ai <http://www.rubikloud.ai/?ref=email_signature>

[image: LinkedIn]
<http://www.linkedin.com/company/rubikloud-technologies> [image:
Twitter] <http://www.twitter.com/rubikloud> [image: Instagram]
<http://www.instagram.com/rubikloud> [image: Facebook]
<http://www.facebook.com/rubikloud>

This email contains privileged or confidential information and is intended
only for the named recipients. If you have received this email in error or
are not a named recipient, please notify the sender and destroy the email.
You have the right to opt-out from receiving future communications of this
type. If you wish to stop receiving emails from Rubikloud please reply
using the word ‘Unsubscribe’ in the subject line. If you do this, your data
will be removed from the mailing list but kept on a list of opt-outs to
ensure you do not receive this type of communications in the future. To
learn more about our privacy policy, please go to
rubikloud.ai/privacy-policy.


On Thu, May 2, 2019 at 11:58 AM Mike Chan <mi...@rubikloud.com> wrote:

> Hi all,
>
> I have been trying to touch Zeppelin by API call.
>
> If I type
> https://[cluster name]/zeppelin/api/notebook/
>
> it works, without prompting login page and display resulting JSON in web
> page
>
> But if I do same query in postman / python, it just won't work
>
> Could not get any response
> There was an error connecting to https://[cluster
> name]/zeppelin/api/notebook/
> <https://xgjtv7-asw-prod-eu-rg-spark-esp.azurehdinsight.net/zeppelin/api/notebook/>
> .
> Why this might have happened:
>
>    - The server couldn't send a response:
>    Ensure that the backend is working properly
>    - Self-signed SSL certificates are being blocked:
>    Fix this by turning off 'SSL certificate verification' in *Settings >
>    General*
>    - Proxy configured incorrectly
>    Ensure that proxy is configured correctly in *Settings > Proxy*
>    - Request timeout:
>    Change request timeout in *Settings > General*
>
> I have disabled SSL certification verification accordingly. No proxy
> involved in connection.
>
> Also note that in Chrome Developer Tool it shows a request header as
> Cookie, will this one critical to request as well? But based on the error I
> have I think it's connection layer rather than authentication layer.
>
> Thanks
>