Podio Android SDK item create API call error "Object not found" - android

I have a problem with the Podio SDK on Android in the following scenario:
I have uploaded an image to Podio from our server in a php script and returned the file_id to my Android app via http. The id seems to be valid, but when i try to create an item using this file_id for an image field value i get the following error messages:
E/Volley: [49051] BasicNetwork.performRequest: Unexpected response code 404 for https://api.podio.com/item/app/17418679
com.podio.sdk.ApiError: {"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/item\/app\/17418679","query_string":"","method":"POST"},"error_description":"Object not found","error":"not_found"}
If i do not attach the image the item create call works fine
I used the newest version of the Podio Android SDK from Github (https://github.com/podio/podio-android) compiled using Android Studio 2.3 and build tools version 25.
I already found an error where the wrong app_id was used, but fixing that still left me with the same message.
This used to work only a few weeks ago, maybe there was change in the API? Do you have any tips on what else could cause this problem? I am using different client id / secret in the php script than in the app, could that be the reason?

Related

Unable to request ads from server due to network error- IMA SDK Error and iOS

I am using IMA SDK (iOS - Swift) to play pre-roll ads(Wrapper VAST 3.0)
But when i use this url "http://fusioniprojects.com/rnd/addpod/adpods.xml"
I am getting following error in my log
"Unable to request ads from server due to network error."
and when i am using the url of this type -
"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="
its running fine.
I fallow the solution of this problems from here ( ref - https://groups.google.com/forum/#!topic/ima-sdk/DqE5GruzwwA),
Now its Playing only 1 ad in Android project,not multiple ad and not working for iOS at all.
It may be that I am doing some things wrong in my iOS project but i also downloads the sample project from IMA-SDK (ref - https://github.com/googleads/googleads-ima-ios/releases), But it did not help me to come out with this problems, I am getting same error.I don't know how is it running (at least 1 ad) for the Android project after changes on the server.
Is it problems of IMA-SDK? or am I doing something wrong?
Used IMA SDK version 3.3.1 in iOS.
If you are using Apache sever then To add the CORS authorization to the header using Apache, simply add the following line inside either the Directory, Location, File or VirtualHost sections of your server config (usually located in a *.conf file, such as httpd.conf or apache.conf), or within a .htaccess file: below of the code put inside .htacces file.
Header set Access-Control-Allow-Origin '*'
Header set Access-Control-Allow-Credentials true

ibm-mobilefirst-starter container for Bluemix - adding new http adapter not working

I created ibm-mobilefirst-starter:latest container in bluemix. And I am able to access the MFS console.I can see MobileFirstStarter run time its working fine. Now I uploaded new .wlapp and one http .adapter file into MFS console and they are visible in Console. When I try to access the Adapter from Common Resources I am getting Error :
[http://134.168.31.10:9080/MobileFirstStarter/authorization/v1/clients/preview] failure. state: 404, response: The server was unable to process the request from the application. Please try again later.
Client registration failed with error: {"responseHeaders":{"Date":"Tue, 01 Mar 2016 12:35:44 GMT","Connection":"Close","X-Powered-By":"Servlet/3.0","Content-Length":"0","Content-Language":"en-US"},"status":404,"responseText":"","errorCode":"UNEXPECTED_ERROR","errorMsg":"The server was unable to process the request from the application. Please try again later.","invocationContext":null}
I tried with Android environment and tested in device. Couldn't see any response from adapter.
Thanks in Advance.
There is no preview available from the console in non-development environments (i.e. MobileFirst Studio plug-in for Eclipse).
It is unclear from your question if only the preview failing or also from a device/emulator.

dropbox api exception android

When i tried to download a file from dropbox using dropbox api in android then i got a exception something like this
DropboxException:DropboxServerException (nginx): 400 Bad Request ('rev' is not well-formed: "/storage/sdcard0/SMSbackUpTOSS/DropBox/allSMS_01-Sep-2015.txt")
I am getting exception in this line
fd = mApi.getFileStream(fileSelected.path,
localFile.getPath());
Because no other line under this works.
But the same code in another project works fine. I dont understand why i am getting this exception!!!
mApi.getFileStream(fileSelected.path, localFile.getPath());
the second parameter here is rev, that is the revision of the file.
You should try to use null if you want the latest revision.

No Value for WL-Authentication-Error Exception

When using the WLResourceRequest API ,Launching Native Android
application will result in the following exception:
WLRequest.java:729 :: No value for WL-Authentication-Failure
org.json.JSONException: No value for
WL-Authentication-Failure
at org.json.JSONObject.get(JSONObject.java:389)
The application will run normally and the exception only appears
in the log
Worklight Versions Affected:7.0. In ibm support portal, it says its a cosmetic issue and apply the fix for error in the log to go away.
I am not sure what is the "fix for error in the log to go away". I have the latest fix pack of 7.0 in my server version: 7.0.0.00.20150729-1801.
http://www-01.ibm.com/support/docview.wss?crawler=1&uid=swg1PI46002
You do not have the latest iFix according to the document you have linked to.
It was submitted on August 2nd, but your build is from July 20th.
Find an iFix in IBM Fix Central that is newer than your build. If it's not there, mention this in the comments.

Getting error of parsing the package during updating my new version of apk

Android Experts, I have installed signed apk (version 1.6) and on my server I've uploaded apk( version 1.7). Now I am facing problem during Update my apk from server.. I also got Dialog box for Updating but at the end I am getting error as
"Parser Error, There is a problem parsing the package." . I found some solution from some links but it doesn't work.
I am waiting for your suggestions, any ideas and your solution.
Thank U.!
You can check following things in your code
1. Already installed Apk name and updated apk name should be same.
2. Both Android Manifest contain same android:minSdkVersion value.
Yeppiee... finally I got my solution.. Actually I put wrong file path during Updating code on "onPostExecute".. So thts why I could not Update my apk and was getting "Parser Error, There is a problem parsing the package"
And One more thing If U r update your apk from server U must have following things:
- installed Apk name and updated apk name should be same.
- Both Android Manifest contain same android:minSdkVersion value.(Here My Android Tablet 4.0.3 and I put minSdkVersion:14)
- And Last If U r using asp.net U must Add .APK MIME Type to IIS - Microsoft Server Support. In IIS there needs to be a MIME type added to allow IIS to support the .APK file type.
Check this link

Categories

Resources