Skip to content
#

koa2

koa logo

Koa is a new web framework designed by the team behind Express,

which aims to be a smaller, more expressive, and more robust foundation

for web applications and APIs. By leveraging async functions, Koa allows you

to ditch callbacks and greatly increase error-handling. Koa does not bundle any

middleware within its core, and it provides an elegant suite of methods that make

writing servers fast and enjoyable.

Here are 1,488 public repositories matching this topic...

amrsalama
amrsalama commented Apr 24, 2020

Describe the bug
Find-one endpoint /resource/:id responses with 500 status code instead of 404, this happens with MongoDB setup.

Steps to reproduce the behavior

  1. Setup Strapi with MongoDB configuration.
  2. Create a collection (resource).
  3. Give findOne access to the public.
  4. Send a request to /resource-name/any-invalid-id.

Expected behavior
404 response.

**Sys

flftfqwxf
flftfqwxf commented May 15, 2017

DESC

在v2.2.12版本上,通过 thinkjs plugin xxx 创建的插件,在经过babel编译时存在问题,编译后的代码,无法在thinkjs系统中使用,其依赖和编译命令为:

 "dependencies": {
    "babel-runtime": "6.x.x"
  },
  "devDependencies": {
    "mocha": "1.20.1",
    "istanbul": "0.4.0",
    "babel-cli": "6.x.x",
    "babel-preset-es2015-loose": "6.x.x",
    "babel-preset-stage-1": "6.x.x",
    "babel-plugin-transform-runtime": "6.x.x",
    "ba
bicarlsen
bicarlsen commented Jul 20, 2019

This isn't a bug, but it took me quite a long time to figure out, so thought others have struggled with the same issue.

When using the authenticate method, one must remember to both return the result, and call the function with the context. I thought it may be useful to include this explicitly in the documentation.

I created a [Stack Overflow question](https://stackoverflow.com/questions

pengliheng
pengliheng commented Sep 24, 2017
class TodoStore {
	@observable list = []
	@observable fetched = false
	@action emit = (url) => {
		this.fetched = true
		socket.emit(url)
	}

	@computed get on(){
		socket.on('get list',(json)=>{
			this.fetched = false
			this.list = json.map((index,i)=>{
				return new List(index)
			})
		})
	}
}

mobx正常模式没问题,严格模式下

[mobx] Invariant failed: Since strict-mode is ena
zhangsanplus
zhangsanplus commented Dec 9, 2019

http://127.0.0.1:6060/article/list

{
stack: "SequelizeDatabaseError: Unknown column 'tags.articleId' in 'on clause' at Query.formatError (F:\github\react-blog\server\node_modules\sequelize\lib\dialects\mysql\query.js:244:16) at Query.handler [as onResult] (F:\github\react-blog\server\node_modules\sequelize\lib\dialects\mysql\query.js:51:23) at Query.execute (F:\github\react-blog\server\n

koa-rest-api-boilerplate
posquit0
posquit0 commented Jul 8, 2019

Problem

  • README.md is not good to include more detail content. Hosting web-based documentation can be a good solution. There is no hosting cost if we use static web generator and free hosting provider such as GitHub Pages, Netlify.

Solutions

Static Web Generators

Created by TJ Holowaychuk

Released December 19, 2013

Repository
koajs/koa
Website
koajs.com
You can’t perform that action at this time.