Questions tagged [kitura]

This tag should be used to discuss issues related to the Swift server framework Kitura.

Kitura is a server framework developed by IBM and written in the Swift programming language. This tag should be used when discussing issues and errors regarding the operation of Kitura. The tag should not be used for erroneous code that is running on Kitura if the framework has no relation to the error at hand.

89 questions
0
votes
1 answer

swift package manager doesn't find KituraNet

I want to test Kitura, so I did swift package init --type executable I made a minimal Package.swift import PackageDescription let package = Package( name: "project2", dependencies: [ // Dependencies declare other packages that this…
user4807763
0
votes
1 answer

How to get Kubernetes external ip inside Kitura server

I used kitura create to scaffold a new project so it came with CloudEnvironment which I bumped to version (7.1). I am deploying Kitura (2.3) as Docker image to IBM Kubernetes. The question I have is: how do I get Kubernetes external ip address…
0
votes
1 answer

How to make IBM Kitura Framework listen on IPv6 port?

I made a web application using IBM Kitura Framework, but the service only listens on IPv4? How to make it listen on both IPv4 and IPv6? The source code which adds a HTTP server is as follow Kitura.addHTTPServer(onPort: 8090, with: router) And I run…
0
votes
2 answers

Adding frameworks/packages to Kitura macOS

I am trying to augment the sample Kitura Serverside application as described here: http://www.kitura.io/en/starter/gettingstarted.html. Works as stated. I then try to add the Kitura-Stencil package (package.swift): let package = Package( name:…
svenyonson
  • 1,815
  • 1
  • 21
  • 30
0
votes
2 answers

Sending form-data / application/x-www-form-urlencoded body for OpenWhisk/Kitura Swift HTTP POST Request

I am working my way through using IBM Cloud Bluemix environment with their Kitura flavor of server side Swift implementation. Of course, key to this is the ability to make all sorts of HTTP requests So far I have been able to handle GET requests and…
0
votes
1 answer

How to connect App ID mobile (iOS) SDK with Kitura web app?

What I am trying to do: Create protected Kitura endpoint and access it from iOS app, using App ID. I managed to configure App ID on the Kitura server so that I can login and then access protected endpoint successfully. I can login to the iOS demo…
0
votes
2 answers

How can I locate a resource file for a Kitura server?

I would like to load a file from disk in my Kitura server, but there doesn't seem to be a straightforward way to locate a file. Can anyone suggest how you would locate a file included with the server? Note I am not talking about serving a static…
Drew McCormack
  • 3,490
  • 1
  • 19
  • 23
0
votes
2 answers

Can I send asynchronous response with Kitura

Is it possible to send a response to the client and do some work on other thread, then send another response to the client, the that work is done? Current state: until I call next() block in my async callback method, user doesn't get any…
denis631
  • 1,765
  • 3
  • 17
  • 38
0
votes
1 answer

How to turn base64 encoded data back into an image without using UIImage in Swift?

I'm writing a Swift Server that accepts and saves a base64 String which has encoded a UIImage via UIImageJPEGRepresentation (so I can compress it). This string is then sent as JSON, where it is saved to a Swift Cloudant database. However, the server…
Kye
  • 3
  • 1
  • 3
0
votes
1 answer

Kitura Swift App not compiling on Heroku

Create a Kitura app locally and compiles and builds successfully. But when attempting to deploy to heroku after a while, I get the following output:…
0
votes
1 answer

Kitura iOS server

I'm trying to figure out how a server can work on an iOS device. And I found this fantastic tool. I'm trying to follow this example. Following these instructions, everything seems to work, but when I open EndToEnd.Xcworkspace, Change scheme to…
emacos
  • 541
  • 1
  • 8
  • 17
0
votes
1 answer

Why is Swift Kitura Server Not Terminating Some Threads?

I am having a somewhat reproducible problem on a Swift server I'm running. This is a multi-threaded server, using Kitura. The basics are: After the server has been running for a period of time, download requests start needing retries from the client…
Chris Prince
  • 7,288
  • 2
  • 48
  • 66
0
votes
1 answer

Kitura REST API rate Limiter

I am trying to build REST API's in Swift Language using Kitura. Is there any API Rate-Limiting Middleware in Kitura or Can rate limiting be achieved in any way ?
0
votes
1 answer

Timeout Issue When Downloading from AWS EC2 to iOS app

I have a custom server written in Swift, using Kitura (http://www.kitura.io), running on an AWS EC2 server (under Ubuntu 16.04). I am securing it using a CA signed SSL certificate (https://letsencrypt.org), so I can use https to connect from the…
Chris Prince
  • 7,288
  • 2
  • 48
  • 66
0
votes
1 answer

How to pass computed result to multiple Kitura handler block?

As we can call multiple handler from router get request, how do we pass, say the result computed in the first handler to the next handler block ? // Uses multiple handler blocks router.get("/multi", handler: { request, response, next in …