Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

IBM Design×

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

API Designer Publish error

31000252WJ gravatar image
Question by JesúsCarrera  (1) | Apr 27, 2016 at 03:27 AM apiconnectapimanagementloopbackdesigner

I'm following the exact steps in the official getting started guide: https://developer.ibm.com/apiconnect/getting-started/create-your-api/, but when I reach the point of publishing to Bluemix, I get the following error:

alt text

And in the console:

alt text

Is everyone getting that error? any ideas how to fix?

screen-shot-2016-04-27-at-093801.png (102.6 kB)
screen-shot-2016-04-27-at-09-38-28.png (145.7 kB)

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
270000ADAR gravatar image

Answer by FXPanaget (658) | Apr 27, 2016 at 10:07 AM

Hi Jesus,

You have an error in your swagger definition. What is the validation saying? If there are warning or errors, there should be an icon next to the save button in the Designer helping you to get to where the warning or error comes from (such as below):

Did you add a property or change anything in your generated model?

On my environment the change-stream path has the following: alt text

What do you see for the responses ? In some case I have seen that the validation does not flag an error if the response for an operation does not correspond to a valid schema type (usually the UI will show an empty value for the response schema field). Make sure that it is not the case for you.

Hope that will help you.

Regards, François


change-stream-path.jpg (108.6 kB)
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
31000252WJ gravatar image

Answer by JesúsCarrera (1) | Apr 27, 2016 at 05:35 PM

You are right I get that warning in the designer:

alt text

It seems that the error is related to the x-any definition.

I did not change anything, just followed the getting started guide step by step and it created the x-any definition. Can you explain what is that for? Should I just remove it?


screen-shot-2016-04-28-at-003110.png (366.5 kB)
Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270000ADAR gravatar image FXPanaget (658)   May 03, 2016 at 09:54 AM 0
Share

Hi Jesus The related to the x-any definition validation warning is to be ignored. It will not prevent the publishing. You can remove it but it will not help.

On the other hand, I see that in the responses for the operation(s) before note.greet (likely for the /notes/change-stream path) are of type File while it should be object or string instead of file.

You should have something like:

   /notes/change-stream:
     post:
       tags:
         - note
       summary: Create a change stream.
       operationId: note.createChangeStream__post_notes_change-stream
       parameters:
         - name: options
           in: formData
           required: false
           type: string
           format: JSON
       responses:
         '200':
           description: Request was successful
           schema:
             type: object
       deprecated: false

Regards, François

31000252WJ gravatar image

Answer by JesúsCarrera (1) | May 04, 2016 at 08:15 AM

Hi François, that was the issue, thanks!

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

63 people are following this question.

Answers

Answers & comments

Related questions

Can't run loopback app with DataPower through API Designer 0 Answers

Best practice while using IBM API Connect? 1 Answer

debug tail file command in API Manager 1 Answer

Developer portal REST APIs for analytics data about API, Plan, and application usage? 1 Answer

Strongloop LoopBack Change-Stream puts terms in its response before JSON? 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges