Giter Site home page Giter Site logo

easybuyout's Issues

Issue with Server Timeout

[19:49:50][ERROR] System.Net.WebException: The remote server returned an error: (504) Gateway Timeout.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at Pricer.PriceManager.SearchPoePrices(String rawItemData)

Been running into this today. Similar issues with PoE Trade Macro as well.

Gem keys formed incorrectly

Some gem keys (eg "Glacial Cascade|4|10|20|1") are formed incorrectly. This is especially evident in lvl10 variations. Plus poeninja has no support for lvl10 gems and poeovh changed its keys recently.

[request] change some source code lines to make source VS 2015 compatible

mainwindow.xaml.cs

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/MainWindow.xaml.cs#L189

VS 2017 method private void ClipBoard_ItemParseTask(string clipboardString)

switch(entry.value) {

VS 2015 compatible:

int entryValue = (int)entry.value;
switch (entryValue) {

pricemanager.cs

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L48

VS 2017 method private void DownloadPoeOvhData()

tempDict.TryGetValue(name_category, out Dictionary<string, PoeOvhEntry> category);

VS 2015 compatible:

Dictionary<string, PoeOvhEntry> category;
tempDict.TryGetValue(name_category, out category);

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L52

VS 2017 method private void DownloadPoeOvhData()

// Get OvhEntry from list
category.TryGetValue(name_item, out PoeOvhEntry ovhEntry);

VS 2015 compatible:

// Get OvhEntry from list
PoeOvhEntry ovhEntry;
category.TryGetValue(name_item, out ovhEntry);

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L107

VS 2017 method private void DownloadPoeNinjaData()

tempDict.TryGetValue("lines", out List<PoeNinjaEntry> entryList);

VS 2015 compatible:

List<PoeNinjaEntry> entryList;
tempDict.TryGetValue("lines", out entryList);

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L365

VS 2017 method private void SearchPoePrices()

prices.TryGetValue("Exalted Orb|5", out Entry exaltedEntry);

VS 2015 compatible:

out Entry exaltedEntry;
prices.TryGetValue("Exalted Orb|5", out exaltedEntry);

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L387

VS 2017 method private void Search()

// Get the database entry
prices.TryGetValue(key, out Entry tempEntry);

VS 2015 compatible:

// Get the database entry
Entry tempEntry;
prices.TryGetValue(key, out tempEntry);

settingswindow.xaml.cs

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/SettingsWindow.xaml.cs#L58

VS 2017 method private void Button_Apply_Click(object sender, RoutedEventArgs e)

// Delay box
Int32.TryParse(TextBox_Delay.Text, out int delay);

VS 2015 compatible:

// Delay box
int delay;
Int32.TryParse(TextBox_Delay.Text, out delay);

Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/SettingsWindow.xaml.cs#L70

VS 2017 method private void Button_Apply_Click(object sender, RoutedEventArgs e)

// Lower price % box
Int32.TryParse(TextBox_LowerPrice.Text, out int percentage);

VS 2015 compatible:

// Lower price % box
int percentage;
Int32.TryParse(TextBox_LowerPrice.Text, out percentage);

[bug] Divination cards tabs not working as expected

If you try to use Pricer on divination card tab noting happens.
You need to grab divination card to your inventory and then press right mouse click. And then put again the divination card to divination card tab :(

Run button not active

Run button does not activate when user presses download button and exits settings window before download has finished.

poeprices.info re-integration?

Can you add an option to use this as a source for pricing rares again? Allow us to specify every generic option that's on the site (Machine Learning Price, Recommended Price, etc.)

[bug] GetLatestRelease() exception when using https

How to fix it:

UpdateWindow.xaml.cs Run():

public void Run() {
    // Can't be null when making calls to github
    webClient.Headers.Add("user-agent", "!null");
    // Fix for https DonwloadString bug:
    System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;

[...]

}

Poe.ovh changed API endpoints

New one can be found under http://api.poe.ovh/get, documentation http://poe.ovh/api, Files affected: PriceManager.cs, Item.cs.

[bug] DownloadPoeOvhData() -> MaxJsonLength Property

File: PriceManager.cs
Method: DownloadPoeOvhData()

// Download JSON-encoded string
string jsonString = MainWindow.webClient.DownloadString("http://api.poe.ovh/get?league=" + Settings.league + "&parent=all");

The donwload seems 'ok', but when you try to deseriealize:

// Deserialize
List<PoeOvhEntry> tempDict = new JavaScriptSerializer().Deserialize<List<PoeOvhEntry>>(jsonString);

It's throws this exception:

"Error during serialization or deserialization using JSON JavaScriptSerializer.The length of the string exceeds the value set in the maxJsonLength property. \ R \ nName of the parameter: input"

Useful info about exception: https://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength(v=vs.110).aspx

Maybe this is the 'problem':

The maximum length of JSON strings. The default is 2097152 characters, which is equivalent to 4 MB of Unicode string data.

How i fixed?

  1. Installing Newtonsoft.Json nuget package: https://www.nuget.org/packages/Newtonsoft.Json/11.0.2
  2. Changing this on DownloadPoeOvhData(): (using Newtonsoft.Json instead JavaScriptSerializer)
// Deserialize (Fix bug 4 MB data)
List<PoeOvhEntry> tempDict = Newtonsoft.Json.JsonConvert.DeserializeObject<List<PoeOvhEntry>>(jsonString);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.