by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    oat++
    @oatpp_io_twitter
    Can you check it with curl too, not with postman
    Maybe postman uses POST instead of GET when there is a body
    Koray Toksoz
    @koraytoksoz_gitlab
    maybe, i'll look into it. but it does not explain why it works half of the time. but it's plausable that it's a postman thing
    oat++
    @oatpp_io_twitter
    Yeah, It's strange. If it's the inconsistent response from the server - it's a bug.- server should always respond in the same manner.
    But it may be also a client sending different requests.
    Koray Toksoz
    @koraytoksoz_gitlab
    i can confirm that curl works as it should..
    oat++
    @oatpp_io_twitter
    I can't reproduce it on my machine

    i can confirm that curl works as it should..

    So, using curl it works as expected?

    Koray Toksoz
    @koraytoksoz_gitlab
    it is a postman thing then :) I should check the request and response with wireshark
    that's right, curl works everytime even i have a data payload with get request
    oat++
    @oatpp_io_twitter
    On my postman version, I can't add body if the GET method is selected
    Koray Toksoz
    @koraytoksoz_gitlab
    well, somehow i can :) maybe i have a buggy version of postman
    oat++
    @oatpp_io_twitter
    I hope it's postman not oatpp, hehe :)
    Koray Toksoz
    @koraytoksoz_gitlab
    :) hehehe i believe so
    Koray Toksoz
    @koraytoksoz_gitlab
    A quick question, how to change log levels :) i couldn't find it in examples
    there should be some internal debug logs right? like when an endpoint is reached, a connection opened or closed etc
    oat++
    @oatpp_io_twitter

    Hey @koraytoksoz_gitlab ,

    there should be some internal debug logs right? like when an endpoint is reached, a connection opened or closed etc

    Currently, we don't have those.
    We have a configurable system-wide logger that you can customize.
    But we don't have an every-step-logs in the system which can be enabled by a compiler option.

    Actually it may be a good idea to have something like that...
    Are you still experiencing inconsistency in an endpoint behavior(with clients other then postman)?
    Koray Toksoz
    @koraytoksoz_gitlab
    i have stopped using postman:) so no, it is working as expected now
    oat++
    @oatpp_io_twitter
    Oh nice, good to know :)
    Do you need those logs in your system for monitoring?
    As a quick hack - you cat wrap the ConnectionProvider and a Connection to put your logs there
    Koray Toksoz
    @koraytoksoz_gitlab
    Thank you
    Yesudeep Mangalapilly
    @gorakhargosh
    Hi! Does Oat++ support http/2?
    oat++
    @oatpp_io_twitter
    Hello @gorakhargosh, no Oat++ does not support http2 at the moment
    Benedikt-Alexander Mokroß
    @bamkrs

    Hey @all! We released a new example called IoT-Hue-SSDP.
    While its name is kinda odd, its functionality is very novel to Oat++!
    It demonstrates how Oat++ can be used to develop an Amazon Alexa or Google Home compatible REST-API which emulates Philips Hue bulbs.
    In this example, Oat++ answers to search requests of you favorite SmartHome hub and you can register your fake bulbs to it. For this we implemented the new Oat++ module oatpp-ssdp which can be found here https://github.com/oatpp/oatpp-ssdp

    After the registration of your fake bulbs to your Hub/Alexa/Google Home, you can control your Oat++ application with "Alexa, turn on <your fake device name>"!

    You can find this example here: https://github.com/oatpp/example-iot-hue-ssdp

    Rick Zhuang
    @devil1995
    hey ..
    oat++
    @oatpp_io_twitter
    Hello @devil1995 !
    Rick Zhuang
    @devil1995
    did we get some official group in wechat or qq
    I wanna meet more developers
    oat++
    @oatpp_io_twitter
    Hey @devil1995 , the official "chat group" is here on Gitter. We don't have qq nor wechat group at the moment.
    Ingmars Melkis
    @zingmars
    Hi, is it possible to enable/disable log levels on runtime as opposed to compilation time with OATPP_DISABLE_LOG*?
    Benedikt-Alexander Mokroß
    @bamkrs
    you can implement that by creating your own log-handler
    Benedikt-Alexander Mokroß
    @bamkrs
    Take a look at the DefaultLogger implementation of our Logger interface.
    https://github.com/oatpp/oatpp/blob/master/src/oatpp/core/base/Environment.hpp#L134

    You can implement your own subclass of Logger with your own void log(v_int32 priority, const std::string& tag, const std::string& message) function.

    In this function, you can filter, format and print the logs to your liking :)

    When you are creating the oatpp-environment, just pass your own logger to the init-function: https://github.com/oatpp/oatpp/blob/master/src/oatpp/core/base/Environment.hpp#L134
    Benedikt-Alexander Mokroß
    @bamkrs
    @zingmars with your own logger you can do everything you want. Print it to different filehandles, put it in a database or whatever :)
    Ingmars Melkis
    @zingmars
    Okay, tyvm
    oat++
    @oatpp_io_twitter
    We can also consider adding runtime checks for enabled/disabled logs in the Environment::logFormatted method before doing formatting and buffer allocation - for better performance.
    Ingmars Melkis
    @zingmars
    Yeah, that would definitely be a useful feature to have as base functionality. Should I make an issue on github?
    oat++
    @oatpp_io_twitter
    Yes, please
    Ingmars Melkis
    @zingmars
    Alright, done.
    oat++
    @oatpp_io_twitter
    👍
    h4nnib4l-133
    @h4nnib4l-133
    Hello everyone. I am new this framework. Where should i start for better overview. TIA
    oat++
    @oatpp_io_twitter

    Hello @h4nnib4l-133 ,

    I would suggest the following:

    Any of these will give you a good start

    h4nnib4l-133
    @h4nnib4l-133
    Well Thanks !!
    h4nnib4l-133
    @h4nnib4l-133
    Is someone willing to help in order to help how to project using this library
    Like I am just started to learn web framework is this best way to so in c++. if not so then someone just could guide to do in c++. TIA
    oat++
    @oatpp_io_twitter
    Hey @h4nnib4l-133 , did you manage to read through the get-started docs, and to play with oatpp-starter project ???