Skip to content

Commit

Permalink
fixing connection string issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EarliestFall988 committed Nov 28, 2023
1 parent 3f5a5d1 commit 9c8879b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ValkyrieServerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ValkyrieServerController
public static readonly Uri prodGetDataURI = new Uri("https://valkyrie-nu.vercel.app/api/v1/getdata/", UriKind.Absolute);
public static readonly Uri testGetDataURI = new Uri("http://localhost:3000/api/v1/getdata/", UriKind.Absolute);

public static readonly Uri prodSyncFunctionsURITestBranch = new Uri("https://valkyrie-git-get-functions-from-server-earliestfall988.vercel.app/api/v1/sync-functions", UriKind.Absolute);
public static readonly Uri testSyncFunctionsURI = new Uri("http://localhost:3000/api/v1/sync-functions", UriKind.Absolute);

public static readonly Uri testAPIURIThatICameBackFromThanksgivingAndCantRememberWhatItIsFor = new Uri("http://localhost:3000/api/sm/guess", UriKind.Absolute);
Expand All @@ -26,7 +27,7 @@ public class ValkyrieServerController

public ValkyrieServerController()
{

}

/// <summary>
Expand Down Expand Up @@ -96,15 +97,15 @@ public ValkyrieServerController()


var functionJSON = DiscoverFunctionsHandler.GetFunctionDefinitionsJSON();
Debug.WriteLine(functionJSON);
Debug.WriteLine(functionJSON);

using HttpClient client = new();

HttpContent content = new StringContent(functionJSON);

client.DefaultRequestHeaders.Add("x-api-key", ValkyrieAPIKey);
client.DefaultRequestHeaders.Add("x-instruction-id", instructionId);
var response = await client.PostAsync(testSyncFunctionsURI, content);
var response = await client.PostAsync(prodSyncFunctionsURITestBranch, content);

using StreamReader reader = new StreamReader(response.Content.ReadAsStream());

Expand Down

0 comments on commit 9c8879b

Please sign in to comment.