InvalidEbXmlMessage error from GetMarketingTextRQ - sabre

I was trying to use GetMarketingTextRQ service, but got error message "Unable to internalize message".
Please review my logs below.
the request:
the response:
<GetMarketingTextRQ version="1.0.0" xmlns="http://stl.sabre.com/Merchandising/v1">
<BrandsMarketingTextRequest>
<RequestSource clientID="AVL" geoLocation="HDQ" pseudoCityCode="HDQ" requestingCarrierGDS="PG"/>
<MarketingTextCriteria carrier="PG" language="EN"/>
</BrandsMarketingTextRequest>
</GetMarketingTextRQ>

There are some adjustments needing to be made.
Following is a working request:
<GetMarketingTextRQ version="1.0.0" xmlns="http://stl.sabre.com/Merchandising/v1">
<BrandsMarketingTextRequest>
<RequestSource clientID="SHP" geoLocation="BER" pseudoCityCode="XXXX" requestingCarrierGDS="1S"/>
<MarketingTextCriteria carrier="LX" language="EN"/>
</BrandsMarketingTextRequest>
</GetMarketingTextRQ>
You should change:
clientID="SHP" - looking for availability is not working
geoLocation="BER" - defines the IATA city of your PCC
pseudoCityCode="XXXX" - this is the PCC of your account with Sabre not an IATA City
requestingCarrierGDS="1S" - this is the GDS of the Airline 1S=Sabre, 1B=Abacus, 1F=Infini, 1J=Axess ( most likely it will be 1S)
Tested this with LX as i know this is a DCA carrier with Sabre. Not sure about PG.

Related

Mint preproduced tokenurl(file size in range 42:50 Kb) , using svg to store full metadata on chain , Erc-721 , polygon (test & main network)

1- i will start by writing the general configurations(system, version, smart contract overall idea).
2- then i will show the main problem(with small code line, that i think it need edit).
3- third part i will show what i try until now and the results
4- at the end of i will add the github link for my full code.
note: the full original code produced by mr. PatrickAlphaC.
a- general configurations(system, version, smart contract overall idea):
a1- operation system: opensuse leap 15.3
a2- hardhat version: 2.8.3
a3- node version: v14.18.3
a4- npm version: 8.3.0
a5- metamask wallet addone to firefox
a6- target block chain: polygon(main net, test net)
a7- smart contract overall idea: use svg to create erc-721 nft, where it's metadata totally stored on chain(the smart contract mint tokenurl to polygon chain).
b- the main problem:
every thing work good as the size of minted file (tokenurl) less than 23.8kb(small than 23.8 kb). where i target mint file that twice this size (every tokenurl equal 50kb). so when try mint tokenurl with size (23.8 Kb < size < 50 Kb) i recive next error message.
An unexpected error occurred:
Error: ERROR processing /home/naive/demos/secondtry/deploy/01_Deploy_SVGNFT.js:
Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"name":"ProviderError","code":-
32000,"_isProviderError":true}, method="estimateGas", transaction={"from":"metamask wallet address","to":"contract address",
c- what i try until now and the results:
c1- try set the gas limit in "hardhat.config" but did not make any effect(it was during search so i do not remmber the form or values).
c2- in "01_Deploy_SVGNFT" add gaslimit to tx, so the code line look like next.
c2-0 origonal code line before edit it: tx = await svgNFT.create(svg)
c2-1 code line after edit it: tx = await svgNFT.create(svg, {gasLimit: 3000000 })
c2-2 the result: give me some error message about wrong syntic (forum, typing)
c3- in "01_Deploy_SVGNFT" add gaslimit to tx, so the code line look like next.
c3-0 origonal code line before edit it: tx = await svgNFT.create(svg)
c3-1 code line after edit it: tx = await svgNFT.create({svg}, {gasLimit: 3000000 })
c3-2 the results:
3-2-0 contract deploying, svg uploading, contract verifying, the matic value decrease in metamask wallet(gas value transfer succeed) all thing look good.
3-2-1 when go to opensea there's no image appears.
3-2-2 when go to polygonscan or etherscan and use token id to see the token uri it return nothing (ther's no metadata string appears, nothing appears).
d- the next github link for full code(contracts, deploy, hardhat.config.js, helper-hardhat-config.js and img folder that contains (preproduced tokenurl)
https://github.com/naive2022/onchainfork
hope help me find how can mint preproduced tokenurl(every file size is 50kb) without face this problem when use polygon test or polygon main network.
the final results rinkeby network can not accept(mint token url) with size above 23 kb approximately

A4SWIFT on BizTalk: Generating a valid MT103; How to understand why a message isn't being generated?

We're working on using BizTalk generate a valid SWIFT message (initially MT 103) and dropping it onto an endpoint. However, we're struggling to generate a valid message.
(Similar, but different question, at this StackOverflow post. I broke the questions up because they are materially different.)
Given a populated A4SWIFT MT103 schema (namespace: http://schemas.microsoft.com/BizTalk/Solutions/FinancialServices/SWIFT/Categroy1/MT103), we're passing that through the SWIFT Assembler on a Pipeline, out of which we get a "flat" SWIFT MT 103 message.
We get a SWIFT message like that below (obviously false):
{1:F01ABCDEFGXAXXX0000000000}{2:I103ABCDEFGHXXXXN}{3:{108:143136}
:20:ABCDEF123456
:23B:CRED
:32A:170607USD500,1
:33B:USD500,1
:50F:/0000000000
Bible Baggins
1 Bag End
Hobbiton
ME1
:53A:/00000000
ABCDEFGXXXX
:57A:ABCDEF
:59F:/00000000000000
CashYourJewelleryFast.com
:71A:OUR
-}
Notice that Block 3 hasn't been terminated correctly and that Block 4 doesn't start correctly.
I'm missing the characters: }{4:
Dijkgraaf asked for the original XML. This is shown below (anonymised as best as I can to match the example):
<ns1:SWIFT_CATEGORY1_MT103_Interchange
xmlns:ns1="http://schemas.microsoft.com/BizTalk/Solutions/FinancialServices/SWIFT/Category1/MT103"
xmlns:ns0="http://schemas.microsoft.com/BizTalk/Solutions/FinancialServices/SWIFT/BaseTypes"
xmlns:ns2="http://schemas.microsoft.com/BizTalk/Solutions/FinancialServices/SWIFT/DataTypes">
<SWIFTHeader>
<BasicHeaderBlock>
<ApplicationIdentifier>F</ApplicationIdentifier>
<ServiceIdentifier>01</ServiceIdentifier>
<LTAddress>ABCDEFGXAXXX</LTAddress>
<SessionNumber>0000</SessionNumber>
<SequenceNumber>000000</SequenceNumber>
</BasicHeaderBlock>
<ApplicationHeaderBlock_Input>
<MessageType>103</MessageType>
<DestinationAddress>ABCDEFGHXXXX</DestinationAddress>
<MessagePriority>N</MessagePriority>
</ApplicationHeaderBlock_Input>
<UserHeaderBlock>
<MessageUserReference_108>
<Reference>143136</Reference>
</MessageUserReference_108>
</UserHeaderBlock>
</SWIFTHeader>
<SWIFT_CATEGORY1_MT103>
<SendersReference_20>
<Reference>ABCDEF123456</Reference>
</SendersReference_20>
<BankOperationCode_23B>
<Type>CRED</Type>
</BankOperationCode_23B>
<ValueDateCurrencyInterbankSettledAmount_32A>
<Date>170607</Date>
<Currency>USD</Currency>
<Amount>500,1</Amount>
</ValueDateCurrencyInterbankSettledAmount_32A>
<CurrencyInstructedAmount_33B>
<Currency>USD</Currency>
<Amount>500,1</Amount>
</CurrencyInstructedAmount_33B>
<OrderingCustomer_50F>
<OrderingCustomerIdentification_1>
<Account>0000000000</Account>
</OrderingCustomerIdentification_1>
<NameAndAddress>
<Line1>
<nameAndAddressLineType_1>Bilbo Baggins</nameAndAddressLineType_1>
</Line1>
<Line2>
<nameAndAddressLineType_1>1 Bag End</nameAndAddressLineType_1>
</Line2>
<Line3>
<nameAndAddressLineType_1>Hobbiton</nameAndAddressLineType_1>
</Line3>
<Line4>
<nameAndAddressLineType_1>ME1</nameAndAddressLineType_1>
</Line4>
</NameAndAddress>
</OrderingCustomer_50F>
<SendersCorrespondent_53A>
<PartyIdentifier>
<Identifier>00000000</Identifier>
</PartyIdentifier>
<BankIdentifierCode>
<BankCode>ABCD</BankCode>
<CountryCode>EF</CountryCode>
<AreaCode>GH</AreaCode>
<BranchCode>XXX</BranchCode>
</BankIdentifierCode>
</SendersCorrespondent_53A>
<AccountWithInstitution_57A>
<BankIdentifierCode>
<BankCode>ABCD</BankCode>
<CountryCode>EF</CountryCode>
<AreaCode>EF</AreaCode>
<BranchCode>XXX</BranchCode>
</BankIdentifierCode>
</AccountWithInstitution_57A>
<BeneficiaryCustomer_59F>
<Account>
<Account>00000000000000</Account>
<NameAndAddress>
<Line1>
<nameAndAddressLineType_1>CashYourJewelleryFast.com</nameAndAddressLineType_1>
</Line1>
</NameAndAddress>
</Account>
</BeneficiaryCustomer_59F>
<DetailsOfCharges_71A>
<Code>OUR</Code>
</DetailsOfCharges_71A>
</SWIFT_CATEGORY1_MT103>
</ns1:SWIFT_CATEGORY1_MT103_Interchange>
I've checked the generated MT 103 message with known valid MT 103 messages generated in other systems and I'm confidence the details are present and in the correct format.
I suspect BizTalk/A4SWIFT have a bit of a fit when something is wrong and generates a half-created message.
Is there something I am missing? Where can I find actual errors associated with this, as opposed to just the counts? I can generate <UnparsedMessages /> and can route errors around based on the promoted properties but they don't contain any useful information.

Error "...FQTV DATA NOT SUPPORTED.." to Add Frequent Flyer Using PassengerDetailsRQ

I would like to add a frequent flyer using PassengerDetails as follow...
<PassengerDetailsRQ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.0.0">
<PostProcessing RedisplayReservation="true" xmlns="http://webservices.sabre.com/sabreXML/2011/10">
<EndTransactionRQ>
<EndTransaction Ind="true" />
<Source ReceivedFrom="AddingFF" />
</EndTransactionRQ>
</PostProcessing>
<PreProcessing xmlns="http://webservices.sabre.com/sabreXML/2011/10">
<UniqueID ID="XXXXXX" />
</PreProcessing>
<SpecialReqDetails xmlns="http://webservices.sabre.com/sabreXML/2011/10" />
<TravelItineraryAddInfoRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10">
<CustomerInfo>
<CustLoyalty MembershipID="123456789" NameNumber="1.1" ProgramID="AV" SegmentNumber="1" />
</CustomerInfo>
</TravelItineraryAddInfoRQ>
</PassengerDetailsRQ>
But in the response, I received this error
.SEGMENT SPECIFIC FQTV DATA NOT SUPPORTED FOR THESE AIRLINES
However, I looked the list (command PT*) and it has the airline AV.
So, I didn't understand that error.
Does anybody got this error?
And other question, what does FQTV mean?
Without the complete information is hard to give a complete response, for which you might want to check with the helpdesk.
Anyway, you might need to put the carrier the person is actually traveling by adding TravelingCarrierCode="YY"
<CustLoyalty MembershipID="123456789" NameNumber="1.1" ProgramID="AV" SegmentNumber="1" TravelingCarrierCode="YY"/>
Regarding your FQTV question, it means Frequent Traveler
Issue solved.
In this case, the problem was the segment number.
I can't send it for any cias.
To solve my problem I just needed to send the request without the segment number attribute.
To know if it is necessary to send the segment number or not just execute the following command PT*{cia} (PT*AV).
Example to cia AV:
PT*AV
FQTV PARTICIPATING AIRLINE EXCHANGE/PARTNERSHIP AGREEMENTS
----------------------------------------------------------
USE. FF(OC)(FF NUMBER)/(RC)-N.N TO TRANSMIT FLIGHT INFO
OC-OWNING RC-RECEIVING
CARRIER CARRIER
/*/ SEGMENT SPECIFIC ALLOWED
AV-134 AVIANCA
ACCEPTS FF ACCOUNT NUMBERS IN THE PROGRAMS LISTED
AC AI AM AV A3* BR CA CM ET* IB* LH LR* NH*
NZ* OS OZ SA* SK SQ* TA* TG* TK* TP UA

Network graphs are flat in Grafana using Telegraf (with InfluxDB)

I have a Grafana dashboard with metrics collected in InfluxDB by Telegraf. The issue I encounter is related to the network graphs that are flat.
My telegraf.conf includes the net plugin :
[[inputs.net]]
And a test returns data :
$ telegraf -config /etc/telegraf/telegraf.conf -input-filter net -test
* Plugin: net, Collection 1
> net,interface=eth0 bytes_recv=48497859793i,bytes_sent=68085171005i,drop_in=0i,drop_out=0i,err_in=0i,err_out=0i,packets_recv=65927848i,packets_sent=69072905i 1453196173154147048
> net icmp_inaddrmaskreps=0i,icmp_inaddrmasks=0i,icmp_incsumerrors=65i,icmp_indestunreachs=264807i,icmp_inechoreps=38i,icmp_inechos=1077178i,icmp_inerrors=4559i,icmp_inmsgs=1342870i,icmp_inparmprobs=0i,icmp_inredirects=6i,icmp_insrcquenchs=2i,icmp_intimeexcds=774i,icmp_intimestampreps=0i,icmp_intimestamps=0i,icmp_outaddrmaskreps=0i,icmp_outaddrmasks=0i,icmp_outdestunreachs=849867i,icmp_outechoreps=1077178i,icmp_outechos=3i,icmp_outerrors=0i,icmp_outmsgs=1928597i,icmp_outparmprobs=0i,icmp_outredirects=0i,icmp_outsrcquenchs=0i,icmp_outtimeexcds=1549i,icmp_outtimestampreps=0i,icmp_outtimestamps=0i,icmpmsg_intype0=38i,icmpmsg_intype11=774i,icmpmsg_intype3=264807i,icmpmsg_intype4=2i,icmpmsg_intype5=6i,icmpmsg_intype8=1077178i,icmpmsg_outtype0=1077178i,icmpmsg_outtype11=1549i,icmpmsg_outtype3=849867i,icmpmsg_outtype8=3i,ip_defaultttl=64i,ip_forwarding=2i,ip_forwdatagrams=0i,ip_fragcreates=17072i,ip_fragfails=0i,ip_fragoks=8536i,ip_inaddrerrors=0i,ip_indelivers=77465764i,ip_indiscards=0i,ip_inhdrerrors=0i,ip_inreceives=79567433i,ip_inunknownprotos=0i,ip_outdiscards=108775i,ip_outnoroutes=27i,ip_outrequests=70951694i,ip_reasmfails=52285i,ip_reasmoks=1327353i,ip_reasmreqds=2706991i,ip_reasmtimeout=44473i,tcp_activeopens=872419i,tcp_attemptfails=126726i,tcp_currestab=23i,tcp_estabresets=78613i,tcp_incsumerrors=0i,tcp_inerrs=90i,tcp_insegs=43809023i,tcp_maxconn=-1i,tcp_outrsts=113744i,tcp_outsegs=56961459i,tcp_passiveopens=1065318i,tcp_retranssegs=354967i,tcp_rtoalgorithm=1i,tcp_rtomax=120000i,tcp_rtomin=200i,udp_ignoredmulti=0i,udp_incsumerrors=0i,udp_indatagrams=33110797i,udp_inerrors=36303i,udp_noports=232164i,udp_outdatagrams=27459622i,udp_rcvbuferrors=36303i,udp_sndbuferrors=0i,udplite_ignoredmulti=0i,udplite_incsumerrors=0i,udplite_indatagrams=0i,udplite_inerrors=0i,udplite_noports=0i,udplite_outdatagrams=0i,udplite_rcvbuferrors=0i,udplite_sndbuferrors=0i 1453196173155777308
Am I missing something?
Thanks
You're graphing the total number of bytes/packets sent/received since the interface was started. This number will only ever increase. If you want to see these as a rate (eg bytes per second) then you will need to use Influx's DERIVATIVE(1s) function:
SELECT derivative("bytes_recv", 1s) FROM "net" WHERE "host" = '1.2.3.4' AND "interface" = 'eth0'

MSP430: unable to find device a device matching 0451:f432

everyone!
My problem is when I use the command 'lsusb', The result is:
Bus 002 Device 011: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 002 Device 012: ID 2047:0013 Texas Instruments
But when I use 'make msp5529 install', it shows:
usbutil: unable to find a device matching 0451:f432
make: * [program] Error 255
I don't know how can I transform '0451:f432' to '0451:2046'. I tried add an rule in /etc/udev/rules.d/82-msp430.rules like '
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="2046", MODE="0666", GROUP="users".'
But it still shows the same error. Do you know why? Thank you very much!! :)
I assume you're playing with the msp430F5529 Launchpad, in which case the 0451:f432 VID/PID won't work. In summary, you'll need to run:
sudo mspdebug tilib "prog bin.elf"
where bin.elf is the binary program that you generated. I found that the easiest way to get a working mspdebug with tilib is downloading the Energia IDE for msp430.

Resources