-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API not getting connected #15
Comments
Happy to help ☺ |
This is the code. I am a noob in coding and trying to learn and build. import requests print data nicelydef print_json_as_table(json_array): combines 2 arrays with common column Housedef combine_json_arrays(json_array1, json_array2): set time & locationdomainName = "https://api.vedastro.org" get needed dataurl = f'{domainName}/Calculate/AllHousePlanetsInHouseBasedOnSign/{timeLocation}' url2 = f'{domainName}/Calculate/AllHouseSignName/{timeLocation}' allHouseSignNameList = next(iter(rawData2.values())) combine datacombined_json_array = combine_json_arrays(allPlanetHousePositionsBasedOnSignList, allHouseSignNameList) print dataprint_json_as_table(combined_json_array) |
@dineshmrai apologies for the late reply 🙏 |
I am getting the below errors"
Traceback (most recent call last):
File "D:\Project\VedAstro.Python\demo_code_from_api_builder.py", line 13, in
calcResult = Calculate.HousePlanetIsIn(time, planetName)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Calculate' has no attribute 'HousePlanetIsIn'""
And after debugging below :
AllHousePlanetsInHouseBasedOnSign response: {
"Status": "Pass",
"Payload": {
"AllHousePlanetsInHouseBasedOnSign": "System.Collections.Generic.Dictionary
2[VedAstro.Library.HouseName,System.Collections.Generic.List
1[VedAstro.Library.PlanetName]]"}
}
AllHouseSignName response: {
"Status": "Fail",
"Payload": "Calculator method not found!"
}
Failed to get AllHouseSignName data: {'Status': 'Fail', 'Payload': 'Calculator method not found!'}
No data to combine.
The text was updated successfully, but these errors were encountered: