Comments (12)
Would it be possible to share the entire output from running sample-dataextension.rb from the samples directory?
from fuelsdk-ruby.
Yep, it appears to fail on the very first post test:
">>> Get all of the DataExtensions in an Account"
"Retrieve Status: true"
"Code: 200"
"Message: OK"
"MoreResults: false"
"RequestID: 840e0263-5ad2-4ed8-9845-e86124825563"
"Results Length: 60"
">>> Create Data Extension"
"Post Status: false"
"Code: 200"
"Message: Error"
"Results: [{:status_code=>"Error", :status_message=>"Requested value 'APIObject' was not found.", :new_id=>"0"}]"
"Caught exception: Failure creating data extension"
["./samples/sample-dataextension.rb:41:in `
from fuelsdk-ruby.
I am guessing that when FuelSDK gem was installed, it used the version from RubyGems.org which I haven't had a chance to update with the most recent changes. If you could build/install the gem from the source and give it one more try:
gem uninstall fuelsdk
gem build fuelsdk.gemspec
gem install fuelsdk-0.0.5.gem
from fuelsdk-ruby.
I tried this, but still get the same error both for the sample-dataextension.rb script and my own spec tests.
The sample-dataextension.rb output is identical to what I pasted above (but with a different RequestID).
I checked the version of the fuelsdk gem currently installed on my system and it shows up as 0.0.5
from fuelsdk-ruby.
I was able to replicate the issue by updating savon to 2.3.0. It appears that it introduced a breaking change to the FuelSDK. When I reverted back to 2.2.0 the issue went away. Please confirm that you have savon 2.3.0. This would explain why you would receive the same error when using the master branch of the SDK and the Dot9Refactor branch.
from fuelsdk-ruby.
Ah yes, that did it, thanks for hunting that down!
FWIW, I don't think you have to specify the savon gem in the Gemfile since it's referred to in the gemspec.
from fuelsdk-ruby.
Have anybody figured why does this breaks with Savon 2.3 and above? Savon is already in 2.5 and is a really stable gem. The real issue should be addressed while we keep Savon 2.2 as a palliative solution only.
from fuelsdk-ruby.
Thanks for the reply, @ExactTarget. You're great at providing support.
from fuelsdk-ruby.
I am getting this same issue trying to create a new list. When I installed savon in my Gemfile it installed 2.11.1 by default. I also tried just installing savon 2.2 on the command line (after removing 2.11.1)
But I still get the same error about APIObject not found.
@Body=
{:create_response=>
{:results=>
{:status_code=>"Error", :status_message=>"Requested value 'APIObject' was not found.", :ordinal_id=>"0", :new_id=>"0", :object=>{:partner_key=>nil, :object_id=>nil}},
:request_id=>"ff4d2256-dc36-4fb3-a6a2-7ab05b3ef494",
:overall_status=>"Error",
:@xmlns=>"http://exacttarget.com/wsdl/partnerAPI"}},
Not sure if there is something else obviously potentially going on or if this might be Savon related?
from fuelsdk-ruby.
Hey there,
I don't know if this is still an issue, but I came across this problem and then fixed it today in my own implementation of the ExactTarget SOAP API (in Python, mind you).
The meaning of this error:
When you submit a request to ET's SOAP API you have to declare the type of the object and make sure it matches the expected format. In most cases, if you screw up that format, ET will be very explicit about what the expected object was (i.e. "Requested value 'RetrieveRequest' was not found.") , but there are a few methods that aren't as strict and will accept multiple object types (Delete is the one that caught me out today), and in that case it gives the generic error for the superclass APIObject - "Requested value 'APIObject' was not found."
The solution:
I have no idea where this would be cropping up in the SDK, because I'm building my own, but basically I just had to set up a switch to determine the type of the object (usually just by passing in an object_type value) and then ensure that the correct object is created and sent to the SDK for each different ObjectType.
from fuelsdk-ruby.
I had to deal with these guys on my previous job. It was horrible. I hope I never have to deal with ExactTarget or it's crappy and old SOAP API, along with their horrible support.
from fuelsdk-ruby.
@c4collins are you perhaps planning to share your own implementation in future?
from fuelsdk-ruby.
Related Issues (20)
- [BUG] Gem doesn't work on servers which don't have git installed
- [BUG] HTTP::TimeoutError Write timed out after 0.25 second
- [Required Update]
- [BUG] - 400 response when inserting or updating Data Extension rows HOT 2
- Open SSL Connection reset by peer HOT 3
- SSL_connect error in all Marketing Cloud API requests
- Connection reset by peer - SSL_connect
- CI through Travis
- Rubocop
- Please delete dead code
- MarketingCloudSDK::TriggeredSend doesn't support client ID
- Additional maintainer? HOT 4
- FuelSDk is showing Error message while sending a POST request HOT 3
- Delete records from Marketing cloud through Rest API
- Sidekiq : Throwing Error Message
- MarketingCloudSDK::Response.continue fails
- Status of this SDK HOT 6
- Please deprecate this repository HOT 2
- Trouble connecting to the client after the April 1st Permission update HOT 3
- Update JSON library to version 2 to 3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuelsdk-ruby.