0

I am building a Business Intelligent chat bot where data is retrieved from APIs. I am making the API calls from cloud functions filtering and returning the data.

I can make calls while I am connected to VPN but not from outside (IBM cloud functions)

import requests
import pandas as pd
def reports(api_url):
    r = requests.get(url)['Body']
    df = pd.read_json(r)
    #filtered report
    filtered_df = df[df['state']=='CA']
    return filtered_df.to_json()


The above api_url is private. I get HTTP connection error when called IBM cloud functions.

Quantum Dreamer
  • 432
  • 1
  • 6
  • 17
  • Not enough to go on for root cause. Why not use the `ibm_watson` module to get the data? https://github.com/watson-developer-cloud/python-sdk – Simon O'Doherty Jun 09 '19 at 21:08
  • Seems to be a normal network related restriction. ie. nothing in the cloud is able to see your private APIs because their routing tables / DNS addressing does not include your private address. – chughts Jun 11 '19 at 09:28
  • Network restricted APIs. Using orchestration layer to manage the internal data. This does not allow me to use watson assistant dialogue capabilities to full extent. – Quantum Dreamer Jul 03 '19 at 18:48

0 Answers0