Skip to content

Unexpected end of input (not same as one before) #974

@DragonOsman

Description

@DragonOsman

As the title says, my issue is an "unexpected end of input" error. I have a HTTP web server I'm writing using an example from the Boost.Beast library, and in it I want to send a request to a currency API that gives back its response as JSON data. I'm trying to use this library for that.

I don't know what exactly caused the problem, but I can provide a link to a Gist with all of my code here at least: https://gist.github.com/DragonOsman/9a7d4ee116efc575dece7d6de46bd31d . The HTML and JavaScript files provided are also part of the project and may be needed to reproduce the issue.

The expected behavior for the JSON part is that I should get back a conversion rate as JSON data that would be stored in my cache storage.

The actual behavior is that I have a message that says there's an unexpected input error, and it seems like the response body I was expecting isn't there. There are other problems in the program itself, but I don't think I should talk about them here since this is about the JSON library.

The compiler I'm using is MSVC, latest version. Visual Studio 2017 IDE. OS is Windows 10.

This is not a bug report, just an issue I'm having that I thought I should ask about. Any help would be appreciated. Thanks in advance.

Edit to add: I forgot to say this earlier; I used ParcelJS to build my front-end code to make the country-currency-map stuff work. It runs its own server, though, so I had to close that and then run the application which has its own server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions