Giter Site home page Giter Site logo

Error 500 on HTTP POST about restroom-mw HOT 3 CLOSED

dyne avatar dyne commented on June 23, 2024
Error 500 on HTTP POST

from restroom-mw.

Comments (3)

puria avatar puria commented on June 23, 2024

yes you are sending the identity not wrapped into data field that is demanded by the restroom api... can you double check with:

Rule caller restroom-mw

Given I have a 'string' named 'add-identity'
Given I have a 'string dictionary' named 'identity'
Given I have a 'string dictionary' named 'output'

Given I connect to 'add-identity' and pass it the content of 'data' and save the output into 'output'

Then print data

with the following:

{
	"add-identity": "https://apiroom.net/api/dyneorg/consensusroom-add-identity",
	"data": { "identity": {
		"Kenshiro": {
			"baseUrl": "http://192.168.0.100:3030",
			"ip": "192.168.0.100",
			"public_key": "BGiQeHz55rNc/k/iy7wLzR1jNcq/MOy8IyS6NBZ0kY3Z4sExlyFXcILcdmWDJZp8FyrILOC6eukLkRNt7Q5tzWU=",
			"timeServer": "http://localhost:3312",
			"uid": "Kenshiro",
			"version": "1"
		}
}
	}
}

from restroom-mw.

andrea-dintino avatar andrea-dintino commented on June 23, 2024

I was wrapping it right, just tried, I get the same error 500

from restroom-mw.

puria avatar puria commented on June 23, 2024

Just added an example so you can copy from:

https://github.com/dyne/restroom-mw/blob/master/test/http/endpoint.zen

https://github.com/dyne/restroom-mw/blob/master/test/http/post-restroom.zen
https://github.com/dyne/restroom-mw/blob/master/test/http/post-restroom.keys

from restroom-mw.

Related Issues (20)

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.