Question

Jper707 on Tue, 30 May 2017 21:18:02


Hi,

I'm currently getting an error sending a post request, any help would be greatly appreciated. My data set has two columns "message" and "newscore". I'm trying to send a post request including both the columns, but I'm getting "Input data does not match input port schema". I'll include an image of the post request (I'm using Huginn to send the request). Any suggestions would be greatly appreciated. (The {{title}} is just a string.

Request (I can't post images): 

{
  "post_url": "RRS_url",
  "expected_receive_period_in_days": "1",
  "content_type": "json",
  "method": "post",
  "Inputs": {
    "input1": {
      "ColumnNames": [
        "message",
        "newscore"
      ],
      "Values": [
        "{{title}}",
        "0"
      ]
    }
  },
  "headers": {
    "Authorization": "Bearer my_api_key,
    "Content-Type": "application/json",
    "Accept": "text/json",
    "Accept-Charset": "UTF-8"
  },
  "emit_events": "true",
  "no_merge": "false",
  "GlobalParameters": "{}"
}


Sponsored



Replies

raymondl_msft on Mon, 12 Jun 2017 16:17:14


A couple of things to try:

1. See if you can test your web service from the test page in https://services.azureml.net/

2. Check the Swagger document (from the same menu as above) to make sure your input matches the post request payload shown in the Swagger document.

Thanks,

Raymond