Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 19 07:06
    kataras synchronize #1662
  • Oct 19 07:06

    kataras on jwt-new-features

    minor commit. But I am not happ… (compare)

  • Oct 18 18:51
    kataras synchronize #1662
  • Oct 18 18:51

    kataras on jwt-new-features

    jwt: make the Blocklist an inte… (compare)

  • Oct 18 17:32
    kataras synchronize #1662
  • Oct 18 17:32

    kataras on jwt-new-features

    add a very simple example on JW… (compare)

  • Oct 18 16:39
    kataras synchronize #1662
  • Oct 18 16:39

    kataras on jwt-new-features

    minor: godoc: remove invalid co… (compare)

  • Oct 18 16:38
    kataras synchronize #1662
  • Oct 18 16:38

    kataras on jwt-new-features

    minor (compare)

  • Oct 18 16:37
    kataras synchronize #1662
  • Oct 18 16:37

    kataras on jwt-new-features

    add an example for #1659 (compare)

  • Oct 18 16:26
    kataras synchronize #1662
  • Oct 18 16:26

    kataras on jwt-new-features

    Thank you @KevinZhouRafael for … add context.ReadURL - relative … (compare)

  • Oct 18 15:26

    kataras on master

    Thank you @KevinZhouRafael for … (compare)

  • Oct 18 14:15
    kataras synchronize #1662
  • Oct 18 14:15

    kataras on jwt-new-features

    jwt: add the (last) helper: Ver… (compare)

  • Oct 18 11:42
    kataras synchronize #1662
  • Oct 18 11:42

    kataras on jwt-new-features

    add an extra security layer on … (compare)

  • Oct 17 12:22
    kataras synchronize #1662
godsendMorgen
@tonyjia87
Is there a development tool like Laravel's homestead provides a wonderful and standard development environment ?
Gerasimos (Makis) Maropoulos
@kataras
@tonyjia87 you don't need tools like that with Go at all
Rick
@L-Angel
why i when use iris as server side app.the response time so long...
most of time is used to established tcp connection.
@kataras
Gerasimos (Makis) Maropoulos
@kataras
We are sure that the problem you are facing is not caused by Iris itself but how you use it or what other libraries you are using (i.e for database connection and e.t.c.). Please share a code snippet that we can actually see your point and benchmark it @L-Angel
WoW-Hacker
@Wow-Hackers
加州
RebootCode
@rebootcode
Any answer on this - kataras/neffos#15 ?
Any performance difference between the old websocket and neffos?
is there any performance benchmark for neffos?
RebootCode
@rebootcode
Fei Song
@songfei
hello, in mod file , iris version is : github.com/kataras/iris v11.1.1+incompatible
can not find v11.2.8 , can help me?
Taimoor Badar
@taimoor01_gitlab
Hello , I am getting this error and tried many things but could not solve it. the project is in Laravel and i am quite new at laravel. please help. I am getting this message in my console.
Access to XMLHttpRequest at 'http://sockjs-ap1.pusher.com/pusher/app/appkey/231/6llt85km/xhr?protocol=7&client=js&version=4.4.0&t=1570290622966&n=22' from origin 'http://www.domain.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
any help please
Gerasimos (Makis) Maropoulos
@kataras
@/all Please do vote at: kataras/iris#1370.
@taimoor01_gitlab Please fill an issue at: https://github.com/kataras/iris/issues/new/ and post your backend code. You probably missuse the CORS middleware
@rebootcode Thanks mate!
@songfei Please read the updated https://github.com/kataras/iris/wiki/Installation#install and vote in my first link posted a while ago.
vgocoder
@vgocoder
hello,how can I get the http response content ,and log to file
    app := iris.New()

    r, close := newRequestLogger()
    defer close()

    app.Use(r)

    app.OnAnyErrorCode(r, func(ctx iris.Context) {
        ctx.Values().Set("error_log", "error")
        ctx.JSON(http.ApiFailedResponse(ctx.GetStatusCode(), "error", nil))
    })
vgocoder
@vgocoder
@kataras I use toml file at last . ^V^
@kataras I'm back haha
Fei Song
@songfei
@kataras thank you!!
Gerasimos (Makis) Maropoulos
@kataras
Hello @vgocoder welcome once again! You can get it by ctx.GetBody() and run with iris.Run(..., iris.WithoutBodyConsumptionOnUnmarshal) if you want to re-use the response body later on in the same request-response lifecycle (handler chain). GetBody: doc and GetBody: example.
Gilad Sharaby
@giladsh1
Hello
I was wondering if there's a way to set the log level for requests via an environment variable or some other type of configuration.
with the default setting, every GET request is automatically written to stdout, which slows the application down and create a lot of unnecessary noise.
many thanks!
Gerasimos (Makis) Maropoulos
@kataras

Hello @giladsh1,

This is happening because you initialized the Iris application with app := iris.Default(), which registers the request logger middleware and recover, use app := iris.New() instead and customize the request logger (if you need to log the requests) as you want. You can change the log output and customize each log message through logger's Handle method.

Resources:

Gilad Sharaby
@giladsh1
Thanks a lot @kataras!
vgocoder
@vgocoder
@kataras Ths
Phongthorn Khamkankaew
@ALTELMA
Anyone here
Hello
I got this error from a new version of iris v12
Error scanning github.com/kataras/iris/12: cannot find package "." in:
/root/.glide/cache/src/https-github.com-kataras-iris/12
[ERROR] Error scanning github.com/kataras/iris/v12/mvc: cannot find package "." in:
/root/.glide/cache/src/https-github.com-kataras-iris/v12/mvc
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
FYI, I use glide to get the package.
bscutvick
@bscutvick
hello, can anyone help with this error:
cannot use crs (type "github.com/kataras/iris/v12/context".Handler) as type "github.com/kataras/iris/context".Handler in argument to api.APIBuilder.Party
i've tried a bunch of different updating already
bscutvick
@bscutvick
looks like adding /v12 to all the import statements needs to happen, at least I think so
Phongthorn Khamkankaew
@ALTELMA
I try with a new project from scraht
And put /12 it work for installation step, but not works on the development.
Go always throw an error cannot find any package from iris/v12
Gerasimos (Makis) Maropoulos
@kataras
@bscutvick That's it.
@ALTELMA I think you opened an issue about this and it was resolved by using go1.13 and github.com/kataras/iris/v12 to all import paths of your project, right?
Gilad Sharaby
@giladsh1
Hello,
I'm using iris for multiple micro services in dev and stage at the moment, and we want to stress test our apps before going live in production.
Are there any special configuration or consideration we need to take with iris that someone can share from experience?
Any help will be appreciated!
Pavel Nemirovsky
@pavelnemirovsky
Hi Guys, we keep using Iris 10.1.7 and i noticed recently that following dependency no longer exists
[[projects]]
branch = "v2"
name = "github.com/kataras/survey"
packages = [".","terminal","core"]
revision = "00934ae069eda15df26fa427ac393e67e239380c"
can u please advise about ?
Gerasimos (Makis) Maropoulos
@kataras
Hello @pavelnemirovsky I am highly recommend you to upgrade to the latest Iris v12 which is a valid go module and will not require go dep from you. To fix your issue edit your Gopkg.yml -> kataras/survey -> revision to: cc93dc0b22fd116afc9217ac3c623f152fabfa83 and branch to: master.
Pavel Nemirovsky
@pavelnemirovsky
Thank you, I tried to do it on my project level it didn’t work out, so far I upgraded to 11.1 and use go module across the board. Can u recommend most stable version which is production ready?
umair-riaz-official
@umair-riaz-official
hi!
Gerasimos (Makis) Maropoulos
@kataras

@pavelnemirovsky Hello Pavel, I am sorry for your issues. I am willing to personally help you. The breaking changes between 11.1 and v12.x are not extremely difficult to resolve, could you please send me a PM (gitter) about the problems you faced over them or even better share a private/public github repository so I can resolve all your issues myself?

Thanks

Hello @umairalii welcome to our community!