Hi,
I have a question for the software gurus out there. I am trying to connect my .net application to the TARGET API at https://filtergraph.com/aavso/api/v1/ . I always get a 500 server error. The error response indicates that the routine that is suppose to trap the error, itself failed.
I'm using a WEBrequest function and create my network credentials using the Key and password provided in the API instruction.
Is there anyone out there that has successfully connected to the TARGET API with a .net application? If so I would love to compare what you are doing with my process.
Cheers
Nor
Hi Nor,
One suggestion is that you should be using WebResponse instead of WebRequest:
https://social.msdn.microsoft.com/Forums/azure/en-US/bd62538b-1adc-4064-86ec-c093cd754e08/vbnet-rest-api-call-with-basic-authorization?forum=vbgeneral
If you have some code you are testing this with, please send it to me at gsilvis@aavso.org and I'll take a look.
I'm interested in .net code as it is the basis of VPhot.
George
Hi George
I'll send you what I have. I made the change suggested in the link but still get the same error.
**** ?????? ****
Don't know what happened but now the thing works. All I did was hard code the URL into the sub instead of passing it in a parameter.
If you still want the code drop me a note at nbs@njstargazer.org and I'll send it to you.
OK I see what the problem was. If I use the url https://filtergraph.com/aavso/api/v1/Telescope the request fails. IF however I use the url https://filtergraph.com/aavso/api/v1/telescope it works fine. The problem was the uppercase T in telescope. I Have never run itnto a situation where the URL is case sensitive.
Cheers
Nor