Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
0
Question by Salman.PS@ge.com · Feb 05, 2019 at 10:49 PM · mobile-servicepredix-iomobile-sdkiosios-sdk

IOS: User Settings Service (pmapi/usersettings) always returns HTTP 400

Though HTTP body has content, the IOS user setting service returns HTTP 400.

Request Detail

  • URL: http://pmapi/usersettings/name

  • Method: POST

  • Content-Type: text/plain

  • Body: Siri

Error log: 2019-02-06 12:04:37.643425+0530 mobentios[273:12086] [Error] UserSettings Service POST No HTTP Body

Sample AngularJS request code used to consume the service:

 var request = {
     "method": "POST",
     "url": "http://pmapi/usersettings/name",
       "headers": {
         'content-type': 'text/plain'
       },
     "data": "Siri"
 };
 $http(request);

Please note that the above request worked fine for Android and Windows (Java).

Comment
Add comment
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

89 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Any advice for using Google Analytics in a Predix Mobile hybrid webapp? 2 Answers

Mobile App not fetching Asset data 1 Answer

Regarding Predix Mobile App Development 1 Answer

Predix Mobile App Offline 1 Answer

Predix Mobile React Native SDK - Change port 1 Answer

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests